insomnia

A frontend for the hii IRC client

git clone https://git.8pit.net/insomnia.git

 1# Since version 1.0.0 input(1) uses readline instead of linenoise.
 2# Unfourtunatly, readline doesn't work in one-line terminals by default.
 3# This is due to the default values of two settings:
 4#
 5#    (1) By default readline completions are displayed above the current
 6#        input line which is useless in one-line terminals. Instead menu
 7#        completions (cycling through all available completions) need to
 8#        be enabled explicitly.
 9#    (2) By default readline performs line wrapping when input exceeds
10#        the current line. This doesn't work in one-line terminals
11#        either, instead horizontal scrolling has to be explicitly
12#        activated.
13#
14# I would personally prefer if these issue where addressed by readline
15# upstream, i.e. automatically set these option for terminals of height
16# one. Upstream accepted a patch for (2) which should be included in
17# newer readline versions [1]. I haven't tried proposing a patch for (1)
18# yet though. Furthermore, I recently started adding additional readline
19# options which are useful in the insomnia context to this file.
20#
21# [1]: https://lists.gnu.org/archive/html/bug-readline/2019-11/msg00009.html
22
23# Cycle through completions, don't use multiple lines
24"\t": menu-complete
25
26# Use a single line for scrolling
27set horizontal-scroll-mode on
28
29# Prevent input with newlines to cause emittion of multiple IRC messages.
30set enable-bracketed-paste on