Dr-Noob
ac86be2d7a
Fix bug in Windows where specifying a style while using a terminal that supports color does not enable the color support, so colors do not show correctly
2020-10-20 20:43:14 +02:00
Wunkolo
9867754d08
Implement VT100 escape-code detection for Windows
...
Latest versions of windows have support for the parsing VT100 escape
code sequences, allowing for terminal colors similar to Linux.
https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#screen-colors
Here I have it get the console mode, set the
`ENABLE_VIRTUAL_TERMINAL_PROCESSING` flag, and then grab the console
mode again to both verify that VT100 escape sequences are supported and
that it is enabled after setting it to determine if the printer should
allow for fancy-color mode.
2020-10-17 18:46:20 -07:00
Dr-Noob
5119ece0dd
Refactoring defines to enums
2020-10-14 10:55:46 +02:00
Dr-Noob
e37c7d9ae0
Basic support for virtual machines
2020-10-11 23:27:19 +02:00
Dr-Noob
5cca6df218
Fix memory leaks. Add debug message when microarch is unknown
2020-09-01 11:32:08 +02:00
Dr-Noob
1f80566f63
New info to be displayed (uarch and process) instead of other info (sha, aes, sse)
2020-09-01 09:37:53 +02:00
Dr-Noob
69cc08759a
Fix #21 and #22 : Obtain the number of caches of every level instead of guessing them. It is done by fetching cache topology from apic. It works, but it needs a big refactoring. Moreover, it currently works only on Intel CPUs, so this breaks the cache in AMD.
2020-08-29 21:51:14 +02:00
Dr-Noob
ad6c3c88ce
Small corrections in code and Makefile
2020-07-12 15:39:34 +02:00
Dr-Noob
7164409ca2
Add legacy style (for Windows) and make it the default for Windows. Add verbose flag
2020-07-06 01:30:14 +02:00
Dr-Noob
08f79bb914
Fix compilation in Windows and add support for bind to specific cores. Separate APIC code in other file
2020-07-06 01:16:59 +02:00
Dr-Noob
c8fde107dd
Fix ascii logo in AMD. Fix output on CPUs without L3
2020-07-03 16:24:14 +02:00
Dr-Noob
b076189b32
Add support to detect if HT/SMT is enabled or disabled
2020-07-03 16:11:09 +02:00
Dr-Noob
d43229359a
Support for 4 colors with --color (2 for ascii, 2 for text)
2020-07-03 09:42:30 +02:00
Dr-Noob
ba047c76e3
Add two different styles. The old one is now called retro, and the new one, which is the default, is called fancy
2020-07-02 18:53:28 +02:00
Dr-Noob
942a86c04f
Remove styles and add option to specify custom color output in RGB format
2020-07-02 16:14:37 +02:00
Dr-Noob
ea338a68c8
Forgot to support AMD in printer
2020-06-29 17:32:50 +02:00
Dr-Noob
d7b7e2b62d
Support printing dual socket. Fix bug where cache sizes were not displayed correctly (they were truncated)
2020-06-29 17:13:37 +02:00
Dr-Noob
941bf35d03
Big refactoring. Move ascii managment to printer. Mix extended and standart cpuid functions in cpuid file. Old cpuid renamed to cpuid_asm. Store cpu name in cpuInfo struct
2020-06-28 15:51:30 +02:00
Dr-Noob
131d860de6
Print total cache sizes (for L1 and L2, but also for L3 in case we run in dual socket!)
2020-06-28 12:47:03 +02:00
Dr-Noob
0087453eda
Refactoring in printer
2020-06-21 12:43:51 +02:00
Dr-Noob
0cba7b4348
Add "none" style (useful for non colored terminals). Refactoring in printer
2020-06-21 11:07:35 +02:00
Dr-Noob
b81d611282
Fetch freq from cpuid, instead of asking Linux (using /proc). This finally removes udev dependency. However, the support of cpuid 0x16 is limited, so this may break cpufetch on some systems
2020-06-20 13:24:50 +02:00
Dr-Noob
7cd4cb6dcb
Fixed little bug in amd. Introduced feature to check version
2018-06-24 00:17:50 +02:00
Dr-Noob
9f55672aa2
Divide source code from other stuff
2018-06-23 13:04:42 +02:00