[tmux:tickets] #76 Unicode characters break cursor in status line
--- ** [tickets:#76] Unicode characters break cursor in status line** **Status:** open **Created:** Mon Nov 04, 2013 07:35 PM UTC by Leandro Facchinetti **Last Updated:** Mon Nov 04, 2013 07:35 PM UTC **Owner:** nobody Typing in the status line causes the cursor to jump two positions when Unicode characters are input. This happens when changing the windows' names, running commands and everything else I could test. The attached video illustrates the issue. --- Sent from sourceforge.net because tmux-users@lists.sourceforge.net is subscribed to https://sourceforge.net/p/tmux/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/tmux/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.-- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Use special variables in shell-command?
Hello. I'm wondering if there's any way to use a special variable in a shell command, such as: set-option -g status-left "#(powerline.sh left #S)" The specific problem I'm trying to solve involves the Powerline module ... if I have multiple sessions up, they all show the same 'session name' on the statusbar. The session name comes from a call to 'tmux display-message -p "#S"', and it will return only the ID from the session in the foreground, or the session most recently selected. I'm trying to hack the Powerline script to display the correct session-name for each session, regardless of whether it's in the foreground or background. Passing #S to the powerline script would be an easy way of accomplishing that, but it doesn't seem to be possible. I'd be grateful for any other ideas. Thanks for the help. Charles -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: tmux scrolling issue
On Nov 4, 2013, at 3:18 PM, Nicholas Marriott wrote: > You can probably improve this by doing one or both of: > > - Set c0-change-trigger to 0. This seems to work locally, but not over ssh (tmux running remotely). Here's my .tmux.conf, just in case I've got the syntax wrong or something: set-window-option -g alternate-screen off set-window-option -g c0-change-trigger 0 > - Change tty_large_region in tty.c to always return 0 and build tmux > again. I haven't tried this. Is it worth it if the c0-change-trigger setting doesn't work? I also tried zeroing out c0-change-interval, and setting c0-change-trigger to 1 million, neither of which had any noticeable effect. Thanks, -- Ben > But note the only guaranteed way to get previous output is to use tmux > copy mode. > > > On Mon, Nov 04, 2013 at 02:43:39PM -0800, Ben Rosengart wrote: >> Dear tmuxers, >> I am running tmux 1.8 on Mac OS X 10.9 with Terminal.app, and the following >> .tmux.conf: >> >> set -g terminal-overrides "xterm*:smcup@:rmcup@" >> set-window-option -g alternate-screen off >> >> I usually keep my terminals at 80x35. >> >> I have a readily reproducible problem: when I output many lines at a time to >> a freshly started tmux, my scrollback buffer shows the first 81 lines and >> the last 34 lines; everything else disappears. If I command-S to save a >> transcript, I can see all the output there; only scrollback is affected. >> Once there's some other stuff in my scrollback buffer, the constants vary, >> but the overall behavior remains. >> >> This is obviously a big problem. Is it a tmux issue, or a Terminal issue, >> or a configuration problem, or what? Any help would be greatly appreciated. >> >> Thanks, >> -- >> Ben Rosengart >> 2.3.2 418 I'm a teapot >> Any attempt to brew coffee with a teapot should result in the error code >> "418 I'm a teapot". The resulting entity body MAY be short and stout. >> >> -- >> November Webinars for C, C++, Fortran Developers >> Accelerate application performance with scalable programming models. Explore >> techniques for threading, error checking, porting, and tuning. Get the most >> from the latest Intel processors and coprocessors. See abstracts and register >> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk >> ___ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users > -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: tmux scrolling issue
On Tue, Nov 05, 2013 at 12:47:25PM -0800, Ben Rosengart wrote: > On Nov 4, 2013, at 3:18 PM, Nicholas Marriott > wrote: > > > You can probably improve this by doing one or both of: > > > > - Set c0-change-trigger to 0. > > This seems to work locally, but not over ssh (tmux running remotely). Here's > my .tmux.conf, just in case I've got the syntax wrong or something: > > set-window-option -g alternate-screen off > set-window-option -g c0-change-trigger 0 Are you removing smcup and rmcup with terminal-overrides as well? > > > - Change tty_large_region in tty.c to always return 0 and build tmux > > again. > > I haven't tried this. Is it worth it if the c0-change-trigger setting > doesn't work? Possibly. > > I also tried zeroing out c0-change-interval, and setting c0-change-trigger to > 1 million, neither of which had any noticeable effect. 0 is what you want. > > Thanks, > -- > Ben > > > But note the only guaranteed way to get previous output is to use tmux > > copy mode. > > > > > > On Mon, Nov 04, 2013 at 02:43:39PM -0800, Ben Rosengart wrote: > >> Dear tmuxers, > >> I am running tmux 1.8 on Mac OS X 10.9 with Terminal.app, and the > >> following .tmux.conf: > >> > >> set -g terminal-overrides "xterm*:smcup@:rmcup@" > >> set-window-option -g alternate-screen off > >> > >> I usually keep my terminals at 80x35. > >> > >> I have a readily reproducible problem: when I output many lines at a time > >> to a freshly started tmux, my scrollback buffer shows the first 81 lines > >> and the last 34 lines; everything else disappears. If I command-S to save > >> a transcript, I can see all the output there; only scrollback is affected. > >> Once there's some other stuff in my scrollback buffer, the constants > >> vary, but the overall behavior remains. > >> > >> This is obviously a big problem. Is it a tmux issue, or a Terminal issue, > >> or a configuration problem, or what? Any help would be greatly > >> appreciated. > >> > >> Thanks, > >> -- > >> Ben Rosengart > >> 2.3.2 418 I'm a teapot > >> Any attempt to brew coffee with a teapot should result in the error code > >> "418 I'm a teapot". The resulting entity body MAY be short and stout. > >> > >> -- > >> November Webinars for C, C++, Fortran Developers > >> Accelerate application performance with scalable programming models. > >> Explore > >> techniques for threading, error checking, porting, and tuning. Get the > >> most > >> from the latest Intel processors and coprocessors. See abstracts and > >> register > >> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > >> ___ > >> tmux-users mailing list > >> tmux-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/tmux-users > > > -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: Use special variables in shell-command?
What tmux version are you using? On Tue, Nov 05, 2013 at 11:46:36AM -0800, Charles Gamiz wrote: > Hello. I'm wondering if there's any way to use a special variable in a shell > command, such as: > > set-option -g status-left "#(powerline.sh left #S)" > > The specific problem I'm trying to solve involves the Powerline module ... if > I have multiple sessions up, they all show the same 'session name' on the > statusbar. The session name comes from a call to 'tmux display-message -p > "#S"', and it will return only the ID from the session in the foreground, or > the session most recently selected. > > I'm trying to hack the Powerline script to display the correct session-name > for each session, regardless of whether it's in the foreground or background. > Passing #S to the powerline script would be an easy way of accomplishing > that, but it doesn't seem to be possible. I'd be grateful for any other ideas. > > Thanks for the help. > Charles > > -- > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > ___ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: tmux scrolling issue
On Nov 5, 2013, at 2:58 PM, Nicholas Marriott wrote: > On Tue, Nov 05, 2013 at 12:47:25PM -0800, Ben Rosengart wrote: >> On Nov 4, 2013, at 3:18 PM, Nicholas Marriott >> wrote: >> >>> You can probably improve this by doing one or both of: >>> >>> - Set c0-change-trigger to 0. >> >> This seems to work locally, but not over ssh (tmux running remotely). >> Here's my .tmux.conf, just in case I've got the syntax wrong or something: >> >> set-window-option -g alternate-screen off >> set-window-option -g c0-change-trigger 0 > > Are you removing smcup and rmcup with terminal-overrides as well? I was, with set -g terminal-overrides 'xterm*:smcup@:rmcup@' but that’s not relevant to the problem at hand, if I understand correctly. I took it out to simplify my configuration for debugging. Thanks, -- Ben -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: tmux scrolling issue
If you don't do this then most terminals ill turn off scrollback entirely but if yours doesn't then that's fine. On Tue, Nov 05, 2013 at 03:03:28PM -0800, Ben Rosengart wrote: > On Nov 5, 2013, at 2:58 PM, Nicholas Marriott > wrote: > > > On Tue, Nov 05, 2013 at 12:47:25PM -0800, Ben Rosengart wrote: > >> On Nov 4, 2013, at 3:18 PM, Nicholas Marriott > >> wrote: > >> > >>> You can probably improve this by doing one or both of: > >>> > >>> - Set c0-change-trigger to 0. > >> > >> This seems to work locally, but not over ssh (tmux running remotely). > >> Here's my .tmux.conf, just in case I've got the syntax wrong or something: > >> > >> set-window-option -g alternate-screen off > >> set-window-option -g c0-change-trigger 0 > > > > Are you removing smcup and rmcup with terminal-overrides as well? > > I was, with > > set -g terminal-overrides 'xterm*:smcup@:rmcup@' > > but that?s not relevant to the problem at hand, if I understand correctly. I > took it out to simplify my configuration for debugging. > > Thanks, > -- > Ben -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: tmux scrolling issue
On Nov 5, 2013, at 3:09 PM, Nicholas Marriott wrote: > If you don't do this then most terminals ill turn off scrollback > entirely but if yours doesn't then that's fine. OK, I put it back -- but it doesn’t make a spot of difference in my scrollback tests with “perl -le ‘print 1..150’”. > On Tue, Nov 05, 2013 at 03:03:28PM -0800, Ben Rosengart wrote: >> On Nov 5, 2013, at 2:58 PM, Nicholas Marriott >> wrote: >> >>> On Tue, Nov 05, 2013 at 12:47:25PM -0800, Ben Rosengart wrote: On Nov 4, 2013, at 3:18 PM, Nicholas Marriott wrote: > You can probably improve this by doing one or both of: > > - Set c0-change-trigger to 0. This seems to work locally, but not over ssh (tmux running remotely). Here's my .tmux.conf, just in case I've got the syntax wrong or something: set-window-option -g alternate-screen off set-window-option -g c0-change-trigger 0 >>> >>> Are you removing smcup and rmcup with terminal-overrides as well? >> >> I was, with >> >> set -g terminal-overrides 'xterm*:smcup@:rmcup@' >> >> but that?s not relevant to the problem at hand, if I understand correctly. >> I took it out to simplify my configuration for debugging. >> >> Thanks, >> -- >> Ben > -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: tmux scrolling issue
Did you try changing tty_large_region? On Tue, Nov 05, 2013 at 03:14:41PM -0800, Ben Rosengart wrote: > On Nov 5, 2013, at 3:09 PM, Nicholas Marriott > wrote: > > > If you don't do this then most terminals ill turn off scrollback > > entirely but if yours doesn't then that's fine. > > OK, I put it back -- but it doesn?t make a spot of difference in my > scrollback tests with ?perl -le ?print 1..150??. > > > On Tue, Nov 05, 2013 at 03:03:28PM -0800, Ben Rosengart wrote: > >> On Nov 5, 2013, at 2:58 PM, Nicholas Marriott > >> wrote: > >> > >>> On Tue, Nov 05, 2013 at 12:47:25PM -0800, Ben Rosengart wrote: > On Nov 4, 2013, at 3:18 PM, Nicholas Marriott > wrote: > > > You can probably improve this by doing one or both of: > > > > - Set c0-change-trigger to 0. > > This seems to work locally, but not over ssh (tmux running remotely). > Here's my .tmux.conf, just in case I've got the syntax wrong or > something: > > set-window-option -g alternate-screen off > set-window-option -g c0-change-trigger 0 > >>> > >>> Are you removing smcup and rmcup with terminal-overrides as well? > >> > >> I was, with > >> > >> set -g terminal-overrides 'xterm*:smcup@:rmcup@' > >> > >> but that?s not relevant to the problem at hand, if I understand correctly. > >> I took it out to simplify my configuration for debugging. > >> > >> Thanks, > >> -- > >> Ben > > > -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: Use special variables in shell-command?
I just upgraded to the 1.9 development version, and found out that I can quote the variable(s) like this: set-option -g status-left "#(powerline.sh left '#S:#I.#P')" Works perfectly... thanks! -- Message: 4 Date: Tue, 5 Nov 2013 23:00:02 + From: Nicholas Marriott Subject: Re: Use special variables in shell-command? What tmux version are you using? On Tue, Nov 05, 2013 at 11:46:36AM -0800, Charles Gamiz wrote: > Hello. I'm wondering if there's any way to use a special variable in a shell > command, such as: > > set-option -g status-left "#(powerline.sh left #S)" > > The specific problem I'm trying to solve involves the Powerline module ... if > I have multiple sessions up, they all show the same 'session name' on the > statusbar. The session name comes from a call to 'tmux display-message -p > "#S"', and it will return only the ID from the session in the foreground, or > the session most recently selected. > > I'm trying to hack the Powerline script to display the correct session-name > for each session, regardless of whether it's in the foreground or background. > Passing #S to the powerline script would be an easy way of accomplishing > that, but it doesn't seem to be possible. I'd be grateful for any other ideas. > > Thanks for the help. > Charles > -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
auto-completion
Hi. Are there a feature of auto-completion? It would be great to have it, for example, like Ctrl-N in VIM or M-/ in Emacs: it auto-completes a word you type with some other word in current buffer. -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users