[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changing terminal-width while program is running

From: Sven Koehler
Subject: changing terminal-width while program is running
Date: Mon, 27 Sep 2004 05:48:48 +0200 (CEST)
User-agent: SquirrelMail/1.4.3a


if you use bash inside an xterm, bash usually is informed when the width
of the terminal-window changes, but if you change the terminal's width
while a program is running, bash still has the old terminal-width in mind
when the program exists.

Steps to reproduce:
- start bash inside an xterm
- execute "sleep 10"
- change width of the terminal while "sleep 10" is executed
- try to type a long command when the bash-prompt is there again

Actual Result:
- the text is not wrapped correctly to the current width of the terminal

Expected Result:
- bash should ask for the terminal's current width when displaying the
prompt. than the text would be wrapped correctly

reply via email to

[Prev in Thread] Current Thread [Next in Thread]