Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Subshell is crazy... #91

Description

@rcspam

mc version: 4.8.15
This is happened when there is a long command in history and i navigate in it with up and down arrow keys...
This happened only in the mc bash subshell (Ctrl-o)
mc rapha deneb -etc-imagemagick - terminal_001

Activity

  1. rcspam commented on Mar 9, 2016

    @rcspam
    Author

    In fact, after some research, mc subshell does'nt like the "tput setab num_color" or "tput setaf num_colo" in PS1.
    Is there a way to do it accept it ?
    Thanks

  2. zyv commented on Mar 10, 2016

    @zyv
    Member

    So why can't you simply use ANSI escapes instead? Somehow, I'm not surprised that complex stuff in PS1 like tput is causing problems, even though I don't know exactly why. Also, did you try current master? The subshell hook was revised after 4.8.15.

  3. ActualizeInMaterial commented on Jun 20, 2016

    @ActualizeInMaterial

    @rcspam Quick question: are you surrounding the tputs with \[ and \] ? (or, \x01 and \x02 depending on context)

    From man bash

     \[     begin  a sequence of non-printing characters, which could
                         be used to embed a terminal  control  sequence  into  the
                         prompt
                  \]     end a sequence of non-printing characters
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions