added WM support

This commit is contained in:
echo 2022-11-14 15:18:59 +03:30
parent 9faf3cd4b2
commit 3262f354f7
2 changed files with 7 additions and 6 deletions

View file

@ -78,8 +78,10 @@ func handlePrint(action, format string, rest string) {
utils.CutePrint(data.GetMemory(false), format)
case "memoryUsed":
utils.CutePrint(data.GetMemory(true), format)
case "wm":
utils.CutePrint(data.GetWM(), format)
default:
print("{UNKNOWN KEYWORD}")
print("{UNKNOWN KEYWORD: " + rest + "}")
}
if action == "infoln" {
utils.CuteNewLine()