rtfm-filemanager 1.3.10 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/rtfm +26 -22
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a4491169a82080e604a5d903e107f3f544ac70355ccac0e70090779704136df
|
4
|
+
data.tar.gz: b7ae5ca815031c325eaf566e85bbd0ab53436b70e33390cad640f7ad15892304
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c8170aeeda9b5464f9bbd7a325dc988ec7997020302de8ceab15845cc39b2336f6768b007d8a53517021e2e51c853c06f155174bc079173de94acf3b370f59d
|
7
|
+
data.tar.gz: b5d7c09506eba404783cf6e5fe1ddb0015d0650f330023d1aa24905c945eff09e7049bf4d6846689ae9c3d68044fdd0b638092c56dd6d871f55fc5412e0df580
|
data/bin/rtfm
CHANGED
@@ -560,28 +560,32 @@ def main_getkey # GET KEY FROM USER
|
|
560
560
|
@w_r.update = true
|
561
561
|
@w_b.update = false
|
562
562
|
when 'S' # Show comprehensive system info
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
563
|
+
begin
|
564
|
+
@w_r.pager_cmd = ""
|
565
|
+
uname = `uname -o`.chop + " "
|
566
|
+
uname += `uname -r`.chop + " "
|
567
|
+
uname += `uname -v`.chop + " "
|
568
|
+
uname += `uname -p` + "\n"
|
569
|
+
text = [[253, 1, uname]]
|
570
|
+
cpu = "CPUs = " + `nproc`.chop + " "
|
571
|
+
cpuinfo = `lscpu`
|
572
|
+
cpu += cpuinfo[/^.*Model name:\s*(.*)/, 1] + " "
|
573
|
+
cpu += "Max: " + cpuinfo[/^.*CPU max MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz "
|
574
|
+
cpu += "Min: " + cpuinfo[/^.*CPU min MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz\n\n"
|
575
|
+
text += [[154, 0, cpu]]
|
576
|
+
mem = `free -h` + "\n"
|
577
|
+
text += [[229, 0, mem]]
|
578
|
+
ps = `ps -eo comm,pid,user,pcpu,pmem,stat --sort -pcpu,-pmem | head` + "\n"
|
579
|
+
text += [[195, 0, ps]]
|
580
|
+
disk = `df -H | head -8`
|
581
|
+
text += [[172, 0, disk]]
|
582
|
+
dmesg = "\nDMESG:\n"
|
583
|
+
dmesg += `dmesg | tail -6`
|
584
|
+
text += [[219, 0, dmesg]]
|
585
|
+
w_r_info(ansifix(text))
|
586
|
+
rescue
|
587
|
+
w_r_info("Unable to show system info")
|
588
|
+
end
|
585
589
|
# RIGHT PANE
|
586
590
|
when 'ENTER' # Refresh right pane
|
587
591
|
@w_r.clr # First clear the window, then clear any previously showing image
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -33,7 +33,8 @@ dependencies:
|
|
33
33
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
34
34
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
35
35
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
36
|
-
other features. New in 1.3.
|
36
|
+
other features. New in 1.3.11: Rescued error when system commands fail (via the
|
37
|
+
''S'' key)'
|
37
38
|
email: g@isene.com
|
38
39
|
executables:
|
39
40
|
- rtfm
|