ELinks 0.18.0
os2.c File Reference
#include "osdep/system.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "elinks.h"
#include "osdep/os2/os2.h"
#include "osdep/osdep.h"
#include "terminal/mouse.h"
#include "terminal/terminal.h"
#include "util/conv.h"
#include <io.h>
#include <process.h>
#include <sys/video.h>
Include dependency graph for os2.c:

Macros

#define INCL_MOU
#define INCL_VIO
#define INCL_DOSPROCESS
#define INCL_DOSERRORS
#define INCL_WINCLIPBOARD
#define INCL_WINSWITCHLIST
#define A_DECL(type, var)
#define WINCH_SLEEPTIME   500 /* time in ms for winch thread to sleep */

Functions

int is_xterm (void)
static void winch_thread (void)
static void winch (void *s)
void handle_terminal_resize (int fd, void(*fn)())
void unhandle_terminal_resize (int fd)
void get_terminal_size (int fd, int *x, int *y, int *cw, *ch)
int exe (char *path)
char * get_clipboard_text (void)
void set_clipboard_text (char *data)
char * get_window_title (int codepage)
void set_window_title (char *title, int codepage)
int resize_window (int x, int y, int old_width, int old_height)
int get_ctl_handle (void)
int get_system_env (void)
void set_highpri (void)
int can_open_os_shell (int environment)

Variables

int winch_pipe [2]
int winch_thread_running = 0

Macro Definition Documentation

◆ A_DECL

#define A_DECL ( type,
var )
Value:
type var##1, var##2, *var = _THUNK_PTR_STRUCT_OK(&var##1) ? &var##1 : &var##2
@ var
Definition gettextP.h:51
const char * type
Definition download.c:1899

◆ INCL_DOSERRORS

#define INCL_DOSERRORS

◆ INCL_DOSPROCESS

#define INCL_DOSPROCESS

◆ INCL_MOU

#define INCL_MOU

◆ INCL_VIO

#define INCL_VIO

◆ INCL_WINCLIPBOARD

#define INCL_WINCLIPBOARD

◆ INCL_WINSWITCHLIST

#define INCL_WINSWITCHLIST

◆ WINCH_SLEEPTIME

#define WINCH_SLEEPTIME   500 /* time in ms for winch thread to sleep */

Function Documentation

◆ can_open_os_shell()

int can_open_os_shell ( int environment)

◆ exe()

int exe ( char * path)

◆ get_clipboard_text()

char * get_clipboard_text ( void )

◆ get_ctl_handle()

int get_ctl_handle ( void )

◆ get_system_env()

int get_system_env ( void )

◆ get_terminal_size()

void get_terminal_size ( int fd,
int * x,
int * y,
int * cw,
* ch )

◆ get_window_title()

char * get_window_title ( int codepage)

◆ handle_terminal_resize()

void handle_terminal_resize ( int fd,
void(* fn )() )

◆ is_xterm()

int is_xterm ( void )

◆ resize_window()

int resize_window ( int x,
int y,
int old_width,
int old_height )

◆ set_clipboard_text()

void set_clipboard_text ( char * data)

◆ set_highpri()

void set_highpri ( void )

◆ set_window_title()

void set_window_title ( char * title,
int codepage )

◆ unhandle_terminal_resize()

void unhandle_terminal_resize ( int fd)

◆ winch()

void winch ( void * s)
static

◆ winch_thread()

void winch_thread ( void )
static

Variable Documentation

◆ winch_pipe

int winch_pipe[2]

◆ winch_thread_running

int winch_thread_running = 0