mirror of https://github.com/aristocratos/bashtop
Fixed: Unescaped "\" in process list and indent fixes.
parent
54ff694f79
commit
55d0c3e2d2
4
bashtop
4
bashtop
|
@ -12,6 +12,8 @@
|
|||
# shellcheck disable=SC2004 #arithmetic brackets warning
|
||||
# shellcheck disable=SC2017 #arithmetic precision warning
|
||||
# shellcheck disable=SC2207 #split array warning
|
||||
# shellcheck disable=SC2154 #variable referenced but not assigned
|
||||
# shellcheck disable=SC1003 #info: single quote escape
|
||||
|
||||
|
||||
# Copyright 2020 Aristocratos
|
||||
|
@ -2944,6 +2946,8 @@ draw_processes() { #? Draw processes and values to screen
|
|||
pid="${out_line::$((proc[pid_len]+1))}"; pid="${pid// /}"
|
||||
pid_graph="pid_${pid}_graph"
|
||||
|
||||
out_line="${out_line//'\'/'\\'}"
|
||||
|
||||
if ((current_num==proc[selected])); then print -v proc_out -bg ${theme[selected_bg]} -fg ${theme[selected_fg]} -b; proc[selected_pid]="$pid"
|
||||
else print -v proc_out -rs -fg $((fg_r-fg_step_r)) $((fg_b-fg_step_b)) $((fg_b-fg_step_b)); fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue