ELinks 0.18.0
terminal_info Struct Reference

This holds the information used when handling the initial connection between a dumb and master terminal. More...

#include <event.h>

Collaboration diagram for terminal_info:

Data Fields

struct interlink_event event
 The EVENT_INIT event.
char name [MAX_TERM_LEN]
 $TERM environment name
char cwd [MAX_CWD_LEN]
 Current working directory.
int system_env
 System info (X, screen)
int length
 Length of data member.
int session_info
 Value depends on magic.
int magic
 Identity of the connector.
char data [1]
 In the master that is connected to all bytes after data will be interpreted as URI string information.

Detailed Description

This holds the information used when handling the initial connection between a dumb and master terminal.

XXX: We might be connecting to an older ELinks or an older ELinks is connecting to a newer ELinks master so for the sake of compatibility it would be unwise to just change the layout of the struct. If you do have to add new members add them at the bottom and use magic variables to distinguish them when decoding the terminal info.

Field Documentation

◆ cwd

char terminal_info::cwd[MAX_CWD_LEN]

Current working directory.

◆ data

char terminal_info::data[1]

In the master that is connected to all bytes after data will be interpreted as URI string information.

◆ event

struct interlink_event terminal_info::event

The EVENT_INIT event.

◆ length

int terminal_info::length

Length of data member.

◆ magic

int terminal_info::magic

Identity of the connector.

◆ name

char terminal_info::name[MAX_TERM_LEN]

$TERM environment name

◆ session_info

int terminal_info::session_info

Value depends on magic.

◆ system_env

int terminal_info::system_env

System info (X, screen)


The documentation for this struct was generated from the following file: