LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2007, 10:33 AM   #1
arthus
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
line wrap not working with Debian


I'm experienced in Linux, but relatively new in Debian. When I resize a bash shell window and enter a new line, it gets garbled when I backspace. The shell is still wrapping for the old window size. How do I fix this?
Thanks!
 
Old 12-17-2007, 10:46 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
The sort answer:
Code:
eval $(resize)
The long answer/investigation: Are you logged in directly to the machine? The shell will update these settings if it receives the SIGWINCH, which should be sent to the shell when the terminal in which it runs is resized.

If you are logging in remotely to another machine, especially if you are using some sort of login automation system this can be lost somehow. I once wrote a login automation tool using expect and I had to explicitly tell it to pass on SIGWINCH in some cases.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"enscript --word-wrap" does not wrap line of text file powah Linux - General 3 05-16-2006 09:12 PM
is it possible to do this in VIM with line wrap on? hedpe Linux - Software 5 04-19-2006 06:19 PM
xterms wrap over the same line when typing! humbletech99 Linux - Software 6 12-30-2005 05:58 PM
VI wrap line Ephracis Linux - Newbie 4 11-17-2005 05:46 PM
Line wrap with ximian evolution nouse66 Linux - Software 3 06-18-2004 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration