Ticket #1632 (closed defect: wontfix)

Opened 10 years ago

Last modified 10 years ago

Erratic shell prompt behavior

Reported by: CyberShadow Owned by:
Priority: minor Milestone: 4.7.0-pre3
Component: mc-core Version: 4.7.0-pre2
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

To reproduce:

1) Start mc
2) Press Ctrl-O 3 times

Expected behavior:

The cursor should be after the shell prompt.

Current behavior:

The cursor is on the same line as the shell prompt, but at the start of the line. Typing characters types over the shell prompt.

Additional information:

This behavior is seemingly a regression in 4.7.0-pre2, as it wasn't present in 4.7.0-pre1.

Change History

comment:1 Changed 10 years ago by slavazanko

Unable to reproduce.

Please, provide more info about your environment:

  • locale
  • mc -V
  • your preferred shell

comment:2 Changed 10 years ago by CyberShadow

# locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
# mc -V
GNU Midnight Commander 4.7.0-pre2
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish, undelfs
With builtin Editor
Using the ncurses library
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With internationalization support
With multiple codepages support
Data types: char 8 int 32 long 64 void * 64 off_t 64 ecs_char 8

I am using the standard app-misc/mc package on Gentoo x64.

comment:3 Changed 10 years ago by CyberShadow

Oh, shell is GNU bash, version 4.0.28(2)-release (x86_64-pc-linux-gnu).

comment:4 Changed 10 years ago by CyberShadow

I don't know if it's related, but I somehow got mc into the following state:

  • running any command with the panels visible results in The shell is already running a command
  • pressing Ctrl+O to get the shell results in an empty screen (with the cursor where it should be, after an invisible prompt)
  • when running a command, the command is echoed back, then the command is executed, and before the shell is displayed a weird line appears:
    localhost ~ # echo Testing
    echo Testing
    Testing
    echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"
    localhost ~ #
    

P.S. I'm beginning to doubt if this is actually a regression in 4.7.0-pre2, as I think I updated Bash to 4.0 at the same time as mc. Please let me know if you'd like me to test this.

comment:5 Changed 10 years ago by slavazanko

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone changed from 4.7 to 4.7.0-pre3

I'm rewind my repo to 4.7.0-pre2 tag:

git reset --hard 4.7.0-pre2

Bug raised. But for current master bug not reproduceable. Just await for 4.7.0-pre3, please. :)

comment:6 Changed 10 years ago by CyberShadow

Ok, thank you for your time :)

Note: See TracTickets for help on using tickets.