浏览代码

znt: include some status information on top of the window

Sebastian Gniazdowski 9 年之前
父节点
当前提交
357d57c541
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      plugins/zsh-navigation-tools/n-list

+ 5 - 0
plugins/zsh-navigation-tools/n-list

@@ -363,6 +363,11 @@ while (( 1 )); do
     fi
 
     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 move main $(( term_height - 1 - 1 )) $(( status_msg_strlen + 2 ))