If a line extends past 69(?) characters it wraps to the same line, at
which point it will overtype the line and continue to the end of the
line before scrolling to the next line.
I noticed this in xterm, konsole does the same, and I just tried aterm,
Eterm, and rxvt. All have the same problem.
Editing the line is different, backspacing past the beginning of the
line will cause the line to show up on the line above. It makes working
with long lines a PITA.
Running Debian 3.0r1.
$ xterm -v
XFree86 4.1.0(165)
Any ideas?
TIA,
Michael C.
--
mcsu...@usol.com http://mcsuper5.freeshell.org/
Registered Linux User #303915 http://counter.li.org/
Try emabling autowrap in .Xresources
XTerm*autoWrap: true
xterm*autoWrap: true
xrdb -merge .Xresources
xterm & # and do your test.
It still looks the same.
I assume I shouldn't need to log out and log back in, since I did the
merge before launching the xterm.
Other ideas?
For what it's worth, I just tried logging out and restarting X. Still
didn't change.
Yes, the merge took care of that.
> Other ideas?
maybe you have a ~/.Xdefaults which overides my suggestion.
Put my two line in there, if you have one, and xterm & to test.
Last suggestion, get Mandrake because mine wraps and backs up when
editing the line. :)
My files follow:
!-------------------------------------------------------------------
!
! .Xresources
!
!
! Uses: This file provides default values for colors, fonts, and other
! aspects of client appearance and behavior.
!
! Resources is the X buzzword for properties or attributes of an
! application.
!
! <<Edit this file your hearts content - there's no accounting for taste.>>
!
! Color options are in /usr/lib/X11/rgb.txt
! Font options are in /usr/lib/X11/fonts directory.
! Bitmaps are in /usr/include/X11/bitmaps
!
! after making changes do a: xrdb -merge .Xresources
!
! For users doing remote connections into the account.
! The following command should be first in .xinitrc
! xrdb -load $HOME/.Xresources
!
! vt100 XTerm users will need numlock on and export TERM=vt100
!
!-------------------------------------------------------------------
!
!Turn on error messages
*StringConversionWarnings: on
#ifdef COLOR
*customization: -color
#endif
Seyon.modems: /dev/modem
!!-----------------[ xbiff defaults ]----------------------------------
XBiff*background: PaleGreen
XBiff*border: slate blue
XBiff*font: 9x15
XBiff*foreground: Red
XBiff*mouse: black
!!!!
!-----------------[ XMAN Stuff ]--------------------------------------
!
!Xman*manualFontNormal: timr18
!Xman*manualFontBold: timb18
!Xman*manualFontItalic: timi18
!Xman*directoryFontNormal: timr18
Xman*background: White
!Xman*foreground: Saddlebrown
!Xman*Command.foreground: Red
!Xman*topBox*foreground: Blue
!Xman*Text.border: Red
!Xman*Label.font: timr14
!-----------------[ EMACS ]------------------------------------------
!
emacs*Background: DarkSlateGray
emacs*Foreground: Wheat
emacs*pointerColor: Orchid
emacs*cursorColor: Orchid
emacs*bitmapIcon: on
emacs.geometry: 80x25
emacs*Font: 10x20
emacs*title: emacs
emacs*iconName: emacs
emacs*iconState: on
emacs*iconUseBitmap: on
emacs*internalBorder: 10
!!!!
!-----------------------------[ xedit defs ]-----------------------------------
xedit*background: SeaGreen
xedit*input: True
xedit*filename*preferredPaneSize: 825
xedit*editWindow*preferredPaneSize: 600
xedit*labelWindow*justify: center
xedit*labelWindow*label: no file yet
xedit*quit.label: Quit
xedit*save.label: Save
xedit*load.label: Load
xedit*Font: 9x15
xedit*buttons*orientation: horizontal
xedit*buttons*showGrip: FALSE
xedit*messageWindow*preferredPaneSize: 50
xedit*Paned*Text*allowResize: True
xedit*messageWindow.autoFill: True
xedit*messageWindow.scrollVertical: WhenNeeded
xedit*editWindow.autoFill: True
xedit*editWindow.scrollVertical: WhenNeeded
xedit*bc_label*label: Use Control-S and Control-R to Search.
!
! Keep CR in filename window from confusing the user.
!
xedit*filename.translations: #override \
<Key>Return: end-of-line()
!-----------------[ Keyboard focus policy ]---------------------------
!
*keyboardFocusPolicy: pointer
*autoKeyFocus: true
*focusAutoRaise: true
*autoRaiseDelay: 200
*startupKeyFocus: true
! -----------------[ XTERM ]-----------------------
XTerm*ttyModes: erase ^?
!
! XTERM resources
!
XTerm*applicationKeypadMode: True
XTerm*background: AntiqueWhite
XTerm*c132: True
XTerm*cursorColor: Red
XTerm*font: 9x15
XTerm*foreground: Black
XTerm*fullCursor: true
XTerm*jumpScroll: on
XTerm*pointerColor: Black
XTerm*pointerShape: XTerm
XTerm*reverseVideo: false
XTerm*reverseWrap: false
XTerm*autoWrap: true
xterm*autoWrap: true
! XTerm*rightScrollBar: true
XTerm*saveLines: 4096
XTerm*scrollBar: true
XTerm*scrollKey: on
XTerm*scrollTtyOutput: off
XTerm*titleBar: false
XTerm_color*background: Black
XTerm_color*cursorColor: Orchid
XTerm_color*foreground: Wheat
XTerm_color*reverseVideo: false
XTerm*fontMenu.Label: VT Fonts
XTerm*fontMenu*fontdefault*Label: Default
XTerm*fontMenu*font1*Label: Unreadable
XTerm*VT100*font1: nil2
XTerm*fontMenu*font2*Label: Tiny
XTerm*VT100*font2: 5x8
XTerm*fontMenu*font3*Label: Small
XTerm*VT100*font3: 6x10
XTerm*fontMenu*font4*Label: Medium
XTerm*VT100*font4: 8x13
XTerm*fontMenu*font5*Label: Large
XTerm*VT100*font5: 9x15
XTerm*fontMenu*font6*Label: Huge
XTerm*VT100*font6: 12x24
XTerm*fontMenu*fontescape*Label: Escape Sequence
XTerm*fontMenu*fontsel*Label: Selection
!-----------------[ VT100 ]------------------------------------------
XTerm.VT100.translations: #override\
<Key>F1:string(0x1b) string("OP") \n \
<Key>F2:string(0x1b) string("OQ") \n \
<Key>F3:string(0x1b) string("OR") \n \
<Key>F4:string(0x1b) string("OS") \n \
<Key>F5:string(0x1b) string("") \n \
<Key>F6:string(0x1b) string("[17~") \n \
<Key>F7:string(0x1b) string("[18~") \n \
<Key>F8:string(0x1b) string("[19~") \n \
<Key>F9:string(0x1b) string("[20~") \n \
<Key>F10:string(0x1b) string("[21~") \n \
<Key>F11:string(0x1b) string("[23~") \n \
<Key>F12:string(0x1b) string("[24~") \n \
<Key>KP_Enter:string(0x1b) string("OM") \n \
<Key>KP_Decimal:string(0x1b) string("On") \n \
<Key>KP_Add:string(0x1b) string("Ol") \n \
<Key>KP_Subtract:string(0x1b) string("Om") \n \
<Key>KP_0:string(0x1b) string("Op") \n \
<Key>KP_1:string(0x1b) string("Oq") \n \
<Key>KP_2:string(0x1b) string("Or") \n \
<Key>KP_3:string(0x1b) string("Os") \n \
<Key>KP_4:string(0x1b) string("Ot") \n \
<Key>KP_5:string(0x1b) string("Ou") \n \
<Key>KP_6:string(0x1b) string("Ov") \n \
<Key>KP_7:string(0x1b) string("Ow") \n \
<Key>KP_8:string(0x1b) string("Ox") \n \
<Key>KP_9:string(0x1b) string("Oy") \n \
<Key>Home:string(0x1b) string("[1~") \n \
<Key>Insert:string(0x1b) string("[2~") \n \
<Key>Delete:string(0x7f) \n \
<Key>End:string(0x1b) string("[4~") \n \
<Key>Prior:string(0x1b) string("[5~") \n \
<Key>Next:string(0x1b) string("[6~") \n \
<Btn1Down>: select-start() \n\
<Btn1Motion>: select-extend() \n\
<Btn1Up>: select-end(PRIMARY,CUT_BUFFER0) \n\
<Key>BackSpace:string(0x7f) \n\
<Key>Select: select-start() \n\
Button1<Btn2Down>: select-end(CLIPBOARD) \n\
Button1<Btn2Up>: ignore()
!
!------------------------- end .Xresources _____________________________
!------------------------------------------------------------------------
!
! .Xdefaults
!
! Parts (C) 1996 By Greg J. Badros <g...@cs.duke.edu>
! Modification for Linux-Mandrake by Chmouel Boudjnah <chm...@mandraksoft.com>
! You may use this file as specified under the GNU General Public License
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! xterm (and friends)
XTerm*highlightSelection: true
! Uncomment this to use color for the bold attribute
XTerm*VT100*colorBDMode: on
XTerm*VT100*colorBD: blue
! Uncomment this to use color for underline attribute
XTerm.VT100*colorULMode: on
XTerm.VT100*underLine: off
XTerm*VT100*colorUL: magenta
! Uncomment this to display the scrollbar
XTerm*scrollBar: true
! This resource specifies whether or not to ignore the 'alternate screen'
! of applications such as vi. When it is on, these applications will restore
! the contents of the screen when they are exited to what they were before
! they were started. When it is off, the contents of vi will remain on the
! screen after the program is quit.
XTerm.VT100.titeInhibit: true
! Uncomment this to turn off color mode in your xterms
!XTerm.VT100*colorMode: off
XTerm.VT100*dynamicColors: on
! Number of lines of scrollback to save
XTerm*saveLines: 1500
xterm*reverseWrap: true
*visualBell: true
*scrollTtyOutput: False
*scrollKey: True
Scrollbar.JumpCursor: True
! Suppr support.
*VT100.Translations: #override \
<Key>BackSpace: string(0x7F)\n\
<Key>Delete: string("\033[3~")\n\
<Key>Home: string("\033[1~")\n\
<Key>End: string("\033[4~")
! GVim great Colors.
Vim*background: black
Vim*foreground: lightyellow
Vim*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-15-*5
Vim*geometry: 88x35
Vim*menuBackground: black
Vim*menuForeground: moccasin
!--------------------------------------- end .Xdefaults ------------------------
Put the command into a shell script
--
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2115.nptl
------------------------------------------------------
Make sure you don't have any non-printing characters in your prompt. See
the Bash Prompt HOWTO, section 3.4.
I recently changed the prompt to a different color after looking up the
Esc sequences. I haven't read the Bash Prompt HOWTO in years, but that
does ring a bell.
Yep, that's it.
Thanks, All.
Thanks, but been there. I'm partial to Slackware, but while Debian has
it's disadvantages, 14 CDs and apt-get make it the winner for a 366Mhz
machine with a 56K modem. Mandrake is a little slow and I'm a newbie
with compiling my own kernels.
Thanks for the Xresources, maybe I'll incorporate some of it.
It was my colored prompt btw.
Thanks.