http://bugs.grommit.com/show_bug.cgi?id=438
Summary: RFE: Need workaround for "multiline" editor mode issue Product: ksh93-integration Version: unspecified Platform: All OS/Version: Solaris 11/Nevada Status: NEW Severity: enhancement Priority: P3 Component: Other AssignedTo: ksh93-integration-discuss at opensolaris.org ReportedBy: roland.mainz at nrubsig.org CC: roland.mainz at nrubsig.org, april.chin at sun.com, mike.kupfer at sun.com RFE: We need a workaround for a problem with the "multiline" editor mode which happens when the edit line becomes longer than the terminal's width and the terminal cursor is not at position 0 when PS1 is send to the terminal. For example: The user executes a $ printf "foo"<enter> # the prompt will start at position 3 instead of 0. If the user enters a command which is longer than the terminal width and then removes enougth charcters that the edit line fits again into one line the "foo" at the beginning will be overwritten with the prompt. AFAIK a simple workaround is to add $(printf "%*s\r%s" COLUMNS "") at the beginning of PS1, this causes the shell to move to the beginning of the next line if the terminal cursor is not at position 0. -- Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.