Bleh, of course I have xterm available, now that I think about it; I just use X11 so rarely on the Mac that I never remember it...
Ricky On Jul 20, 2010, at 1:15 PM, Richard Morse wrote: > Since I'm running on a Mac, I don't have xterm available, and none of my > other computers have X installed. However, I downloaded iTerm.app, and it > does not display the same issue. It specifies $TERM as "xterm". I then went > into Terminal.app and changed it to specify $TERM as 'xterm', and the problem > disappeared! > > I'm not sure what the difference between xterm and xterm-color is, and how > that interacts with Terminal.app -- where would I look to find out what is > going on? > > Thanks, > Ricky > > p.s. I simplified the shell prompt -- PS1 is '\h:\W \u\$'. > > > On Jul 20, 2010, at 12:31 PM, Nicholas Marriott wrote: > >> Can you reproduce in xterm? >> >> I take it your PS1 is just '\$ '? >> >> >> On Tue, Jul 20, 2010 at 12:29:45PM -0400, Richard Morse wrote: >>> Outside of tmux: >>> >>> $ echo $TERM >>> xterm-color >>> >>> Inside of tmux: >>> >>> $ echo $TERM >>> screen >>> >>> >>> >>> On Jul 20, 2010, at 12:26 PM, Nicholas Marriott wrote: >>> >>>> What is TERM set to inside and outside tmux? >>>> >>>> >>>> On Tue, Jul 20, 2010 at 12:14:42PM -0400, Richard Morse wrote: >>>>> Hi! If I have a long command line, such that it would wrap to the next >>>>> line, and the prompt is at the bottom of the screen, when it should wrap >>>>> and move the display up so that I can see the entire command, it instead >>>>> clears the line and moves the cursor to the beginning. This means that I >>>>> cannot see the entire command... >>>>> >>>>> Example (in monospaced font): >>>>> >>>>> Existing window: >>>>> >>>>> -------------------- >>>>> |$ ls | >>>>> |/Applications | >>>>> |/Desktop | >>>>> |/Documents | >>>>> |$ | >>>>> |[0:bash] 0:foo | >>>>> -------------------- >>>>> >>>>> The last line is the status bar for tmux. >>>>> >>>>> If I try to type in a long command, what I would like to see is: >>>>> >>>>> -------------------- >>>>> |/Applications | >>>>> |/Desktop | >>>>> |/Documents | >>>>> |$ ls /usr/local/bi| >>>>> |n/long/path | >>>>> |[0:bash] 0:foo | >>>>> -------------------- >>>>> >>>>> However, what happens once I type past the edge of the screen is: >>>>> >>>>> -------------------- >>>>> |/Applications | >>>>> |/Applications | >>>>> |/Desktop | >>>>> |/Documents | >>>>> |in/long/path | >>>>> |[0:bash] 0:foo | >>>>> -------------------- >>>>> >>>>> Notice that the top line has been repeated, so it's trying to do >>>>> something. If I now either switch to a different window and switch back, >>>>> or even just type `C-b : <CR>` (ie, go to the command-prompt and press >>>>> return) it then updates the screen properly, and everything looks correct. >>>>> >>>>> I am running tmux inside of Terminal.app on Mac OS X 10.6.4. >>>>> >>>>> Is there some setting I can change to make it update the screen properly? >>>>> >>>>> Thanks, >>>>> Ricky >>>>> >>>>> >>>>> The information in this e-mail is intended only for the person to whom it >>>>> is >>>>> addressed. If you believe this e-mail was sent to you in error and the >>>>> e-mail >>>>> contains patient information, please contact the Partners Compliance >>>>> HelpLine at >>>>> http://www.partners.org/complianceline . If the e-mail was sent to you in >>>>> error >>>>> but does not contain patient information, please contact the sender and >>>>> properly >>>>> dispose of the e-mail. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> This SF.net email is sponsored by Sprint >>>>> What will you do first with EVO, the first 4G phone? >>>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>>> _______________________________________________ >>>>> tmux-users mailing list >>>>> tmux-users@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/tmux-users >>> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users