A busy few hours last night hacking at tscreen, and again today.
I'm now very pleased with the functional aliases:
# # Caption toggle # alias caption_off eval "caption splitonly" alias caption_on eval "caption always" # # Status toggle # alias status_off eval "hardstatus ignore" alias status_on eval "hardstatus alwayslastline" # # Disable both caption and status, and show a message. # alias fullscreen eval "status_off" "caption_off" "echo 'fullscreen'" alias captioned eval "status_on" "caption_on" "echo 'captioned' " # # Bind these functions to keys # bind f eval fullscreen bind F eval captioned
I've made binary & source packages of a slightly earlier version of the code available for Etch and Sid - both AMD64 - and I'll release another update once I can drop the need for that eval usage in the "bind" and add TAB completion for aliases.
ObQuote: Passage To India
Tags: tscreen 10 comments
So I'm here to mention my favorite bug.. Encoding errors! So in my locale the day names contain some non-ASCII characters. And even though my locale is UTF-8 all the way through, somehow it's impossible to get the builtin date things (in hardstatus) to decode properly. Also (IIRC) working around it with backtick does not help.