jps_stat icon indicating copy to clipboard operation
jps_stat copied to clipboard

jps log output

Open shakenfr opened this issue 6 years ago • 1 comments

hello, when I log into a log file I have a problem with special char at the begining.

How to remove them ?

===== ============================== ======= ======= ====== ====== ===== PID Name CurHeap MaxHeap CurRAM MaxRAM %_CPU ===== ============================== ======= ======= ====== ====== ===== 10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0

best bruno

shakenfr avatar Apr 26 '19 12:04 shakenfr

That special char at beginning is because of tput.

To solve this, we can have an option to write directly to a file and do not write tput in that. This will fix the illegal char.

amarjeetanandsingh avatar Jul 24 '20 15:07 amarjeetanandsingh