C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
view.h File Reference

View data structures, enums, types, end external declarations. More...

#include <ncursesw/ncurses.h>
#include <signal.h>
#include <stddef.h>
#include <stdlib.h>
Include dependency graph for view.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  View

Macros

#define _XOPEN_SOURCE_EXTENDED   1
#define NCURSES_WIDECHAR   1
#define COLOR_LEN   8
#define NPOS   256
#define NMARKS   256
#define MAXLEN   256
#define NULSL
#define NULL_POSITION   -1
#define VBUFSIZ   65536
#define BUFSIZ   8192
#define PAD_COLS   4096
#define LINE_TBL_INCR   1024

Enumerations

enum  PROMPT_TYPE { PT_NONE , PT_SHORT , PT_LONG , PT_STRING }

Functions

int get_cmd_spec (View *, char *)
void go_to_position (View *, long)
void cat_file (View *)
 Concatenate File to Standard Output.

Variables

Viewview
char err_msg [MAXLEN]

Detailed Description

View data structures, enums, types, end external declarations.

Author
Bill Waller Copyright (c) 2025 MIT License billx.nosp@m.wall.nosp@m.er@gm.nosp@m.ail..nosp@m.com
Date
2026-02-09

Definition in file view.h.

Macro Definition Documentation

◆ _XOPEN_SOURCE_EXTENDED

#define _XOPEN_SOURCE_EXTENDED   1

Definition at line 13 of file view.h.

◆ BUFSIZ

#define BUFSIZ   8192
Examples
/usr/local/src/C-Menu/src/enterstr.c.

Definition at line 29 of file view.h.

◆ COLOR_LEN

#define COLOR_LEN   8

Definition at line 22 of file view.h.

◆ LINE_TBL_INCR

#define LINE_TBL_INCR   1024

Definition at line 34 of file view.h.

34#define LINE_TBL_INCR \
35 1024 // number of entries to add to line_tbl when reallocating

◆ MAXLEN

#define MAXLEN   256

Definition at line 25 of file view.h.

◆ NCURSES_WIDECHAR

#define NCURSES_WIDECHAR   1

Definition at line 14 of file view.h.

◆ NMARKS

#define NMARKS   256

Definition at line 24 of file view.h.

◆ NPOS

#define NPOS   256

Definition at line 23 of file view.h.

◆ NULL_POSITION

#define NULL_POSITION   -1

Definition at line 27 of file view.h.

◆ NULSL

#define NULSL

Definition at line 26 of file view.h.

◆ PAD_COLS

#define PAD_COLS   4096

Definition at line 30 of file view.h.

◆ VBUFSIZ

#define VBUFSIZ   65536

Definition at line 28 of file view.h.

Enumeration Type Documentation

◆ PROMPT_TYPE

Enumerator
PT_NONE 
PT_SHORT 
PT_LONG 
PT_STRING 

Definition at line 32 of file view.h.

@ PT_STRING
Definition view.h:32
@ PT_NONE
Definition view.h:32
@ PT_SHORT
Definition view.h:32
@ PT_LONG
Definition view.h:32

Function Documentation

◆ get_cmd_spec()

int get_cmd_spec ( View * ,
char *  )
extern

◆ go_to_position()

void go_to_position ( View * ,
long  )
extern

Referenced by go_to_line(), and go_to_mark().

Here is the caller graph for this function:

Variable Documentation

◆ err_msg

char err_msg[MAXLEN]
extern

Definition at line 118 of file view_engine.c.

◆ view