aboutsummaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-09-15 08:00:00 +0200
committerDaniel Lange <DLange@git.local>2020-09-15 08:00:00 +0200
commitf80394a20254938142011855f2954b3f63fe5909 (patch)
treeb777de460977f21a6257540d6a687c86882850dc /CRT.c
parent59eeadec918a955b40427a1b012992161050c939 (diff)
downloaddebian_htop-f80394a20254938142011855f2954b3f63fe5909.tar.gz
debian_htop-f80394a20254938142011855f2954b3f63fe5909.tar.bz2
debian_htop-f80394a20254938142011855f2954b3f63fe5909.zip
New upstream version 3.0.2upstream/3.0.2
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c117
1 files changed, 1 insertions, 116 deletions
diff --git a/CRT.c b/CRT.c
index 0d83bf4..7776c4e 100644
--- a/CRT.c
+++ b/CRT.c
@@ -39,116 +39,6 @@ in the source distribution for its full text.
#define ColorPairGrayBlack ColorPair(Magenta,Magenta)
#define ColorIndexGrayBlack ColorIndex(Magenta,Magenta)
-#define KEY_WHEELUP KEY_F(20)
-#define KEY_WHEELDOWN KEY_F(21)
-#define KEY_RECLICK KEY_F(22)
-
-//#link curses
-
-/*{
-#include <stdbool.h>
-
-typedef enum TreeStr_ {
- TREE_STR_HORZ,
- TREE_STR_VERT,
- TREE_STR_RTEE,
- TREE_STR_BEND,
- TREE_STR_TEND,
- TREE_STR_OPEN,
- TREE_STR_SHUT,
- TREE_STR_COUNT
-} TreeStr;
-
-typedef enum ColorSchemes_ {
- COLORSCHEME_DEFAULT = 0,
- COLORSCHEME_MONOCHROME = 1,
- COLORSCHEME_BLACKONWHITE = 2,
- COLORSCHEME_LIGHTTERMINAL = 3,
- COLORSCHEME_MIDNIGHT = 4,
- COLORSCHEME_BLACKNIGHT = 5,
- COLORSCHEME_BROKENGRAY = 6,
- LAST_COLORSCHEME = 7,
-} ColorSchemes;
-
-typedef enum ColorElements_ {
- RESET_COLOR,
- DEFAULT_COLOR,
- FUNCTION_BAR,
- FUNCTION_KEY,
- FAILED_SEARCH,
- PANEL_HEADER_FOCUS,
- PANEL_HEADER_UNFOCUS,
- PANEL_SELECTION_FOCUS,
- PANEL_SELECTION_FOLLOW,
- PANEL_SELECTION_UNFOCUS,
- LARGE_NUMBER,
- METER_TEXT,
- METER_VALUE,
- LED_COLOR,
- UPTIME,
- BATTERY,
- TASKS_RUNNING,
- SWAP,
- PROCESS,
- PROCESS_SHADOW,
- PROCESS_TAG,
- PROCESS_MEGABYTES,
- PROCESS_TREE,
- PROCESS_R_STATE,
- PROCESS_D_STATE,
- PROCESS_BASENAME,
- PROCESS_HIGH_PRIORITY,
- PROCESS_LOW_PRIORITY,
- PROCESS_THREAD,
- PROCESS_THREAD_BASENAME,
- BAR_BORDER,
- BAR_SHADOW,
- GRAPH_1,
- GRAPH_2,
- MEMORY_USED,
- MEMORY_BUFFERS,
- MEMORY_BUFFERS_TEXT,
- MEMORY_CACHE,
- LOAD,
- LOAD_AVERAGE_FIFTEEN,
- LOAD_AVERAGE_FIVE,
- LOAD_AVERAGE_ONE,
- CHECK_BOX,
- CHECK_MARK,
- CHECK_TEXT,
- CLOCK,
- HELP_BOLD,
- HOSTNAME,
- CPU_NICE,
- CPU_NICE_TEXT,
- CPU_NORMAL,
- CPU_SYSTEM,
- CPU_IOWAIT,
- CPU_IRQ,
- CPU_SOFTIRQ,
- CPU_STEAL,
- CPU_GUEST,
- PRESSURE_STALL_TEN,
- PRESSURE_STALL_SIXTY,
- PRESSURE_STALL_THREEHUNDRED,
- ZFS_MFU,
- ZFS_MRU,
- ZFS_ANON,
- ZFS_HEADER,
- ZFS_OTHER,
- ZFS_COMPRESSED,
- ZFS_RATIO,
- LAST_COLORELEMENT
-} ColorElements;
-
-extern void CRT_fatalError(const char* note) __attribute__ ((noreturn));
-
-extern void CRT_handleSIGSEGV(int sgn);
-
-#define KEY_ALT(x) (KEY_F(64 - 26) + (x - 'A'))
-
-}*/
-
const char *CRT_treeStrAscii[TREE_STR_COUNT] = {
"-", // TREE_STR_HORZ
"|", // TREE_STR_VERT
@@ -656,12 +546,7 @@ void CRT_restorePrivileges() {
#else
-/* Turn setuid operations into NOPs */
-
-#ifndef CRT_dropPrivileges
-#define CRT_dropPrivileges()
-#define CRT_restorePrivileges()
-#endif
+// In this case, the setuid operations are defined as macros in CRT.h
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy