0

Okay, this maybe sounds wear.

When I use the terminal after every command I have to search where the input of my terminal is because it goes down with the stream.

How I can have a fixed position for my input?

ellipticaldoor
  • 1,122
  • 11
  • 24
  • Would it be an option to have the input always at the bottom line of the terminal? As such you could just output a screen full of empty lines when you first start your shell session: `for i in $(seq $LINES) ; do echo ; done ` – Adaephon Apr 10 '17 at 13:49
  • oh, I prefer on the top but thanks – ellipticaldoor Apr 11 '17 at 14:27

1 Answers1

2

This is not guaranteed to work, but will with some terminals/emulators in bash:

PS1='\[\033[1;0H\]\s-\v\$ '

This will always put the prompt at the top line. You probably want the cursor at the bottom, though so you can try:

PS1='\[\033[$LINES;0H\]\s-\v\$ '

or more simply:

PS1='\[\033[1000;0H\]\s-\v\$ '
William Pursell
  • 204,365
  • 48
  • 270
  • 300