mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
znt: include some status information on top of the window
This commit is contained in:
parent
c793baeadd
commit
357d57c541
1 changed files with 5 additions and 0 deletions
|
@ -363,6 +363,11 @@ while (( 1 )); do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zcurses border main
|
zcurses border main
|
||||||
|
|
||||||
|
local top_msg="${(C)ZSH_NAME} $ZSH_VERSION, shell level $SHLVL, $USER"
|
||||||
|
zcurses move main 0 $(( term_width / 2 - $#top_msg / 2 ))
|
||||||
|
zcurses string main $top_msg
|
||||||
|
|
||||||
zcurses refresh main inner
|
zcurses refresh main inner
|
||||||
zcurses move main $(( term_height - 1 - 1 )) $(( status_msg_strlen + 2 ))
|
zcurses move main $(( term_height - 1 - 1 )) $(( status_msg_strlen + 2 ))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue