yaic

yet another ii client
git clone git://git.ckyln.com/~cem/yaic.git
Log | Files | Refs | README | LICENSE

commit 6d776f11be20197acc53879e831fcf6d11deb560
parent bc2ca4e6bde205971cc41ef926f5e8043b5c5f8f
Author: Cem Keylan <cem@ckyln.com>
Date:   Sun, 26 Apr 2020 15:27:52 +0300

add option to change history size

Diffstat:
Myaic | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/yaic b/yaic @@ -36,6 +36,7 @@ gethelp() { ":c|:chan Prints a list of open channels" \ ":c|:chan [channel] Changes the channel to the given channel" \ ":h|:help Prints this help information" \ + ":hist Changes the history size" \ ":m Marks the current position" \ ":s Toggles server notifications" \ ":t Toggles outputting your own messages" \ @@ -243,6 +244,11 @@ main() { else continue ; fi ;; :h|:help) gethelp ; continue ;; + :hist*) + # Word splitting is intentional here. + # shellcheck disable=2086 + [ ${msg#:hist} ] || { msg "Specify a number" ; continue ;} + h="${msg#:hist* }" CHAN="${c:-.}" ; break ;; :q) break ;; :t) toggle NOTEXT ; [ "$NOTEXT" ] && stty -echo || stty echo ; continue ;; :m) mark; continue ;;