Conemu: Can I Hold Shell Prompt at the Top?

Created on 18 Feb 2019  路  12Comments  路  Source: Maximus5/ConEmu

I read this and I have a question: Can I hold shell prompt at the Top?

Sorry for my bad english and Thank you!

ansi

All 12 comments

you may try to add in the beginning of your prompt sort of ESC [ 99 B ESC [ 99 A

you may try to add in the beginning of your prompt sort of ESC [ 99 B ESC [ 99 A

Can you explain more? I do not understand

Hm? What shell do you use and have you tried the solution from the link above?

I use cmd

1

Result:

2

I've posted pseudocode for ANSI.
Definitely no spaces, and for cmd $e instead of ESC.
Example in the docs, link in your first message

Thank you, it works perfect and your conemu is great

you may try to add in the beginning of your prompt sort of ESC [ 99 B ESC [ 99 A

Hi @Maximus5
I use cmd by this task

settings

In version 180528 it works perfect like this

18

When I upgrade to version 191012 it not work correct

19

Can I fix this in newest version?
Sorry for my bad english and thank you for reading

Hi @Maximus5
More info about this issue: version 180528 work correct and version 180617 work not correct same version 191012

More info:
Lastest version 200713 still has this issue.
Version 180528 work correct if buffer lines less than this setting; but when buffer lines more than this setting, it work not correct like newer version.
Capture

I think, it's due to fix in 190224.
Previously the $e[B did not complain to ANSI standard, so no it could not be used to put cursor out of visible area.
The proper sequence is series of 23 $eD ($eD$eD$eD$eD$eD...) to put cursor down and $e[23A to move up.

Or to make things easier

cmd.exe /k prompt $_$e[23b$e[23A$p$g

:clap: :clap: :clap:
It works perfect, thank you very much.

Was this page helpful?
0 / 5 - 0 ratings