ELinks 0.16.1.1
textarea.h File Reference
#include "viewer/action.h"
#include "viewer/text/form.h"
Include dependency graph for textarea.h:
This graph shows which files directly or indirectly include this file:

Functions

int area_cursor (struct el_form_control *fc, struct form_state *fs, int utf8)
 Fixes up the form_state.vpos and form_state.vypos members.
void draw_textarea (struct terminal *term, struct form_state *fs, struct document_view *doc_view, struct link *link)
char * encode_textarea (struct submitted_value *sv)
void free_textarea_data (struct terminal *term)
void textarea_edit (int, struct terminal *, struct form_state *, struct document_view *, struct link *)
void menu_textarea_edit (struct terminal *term, void *xxx, void *ses_)
enum frame_event_status textarea_op_home (struct form_state *fs, struct el_form_control *fc, int utf8)
enum frame_event_status textarea_op_up (struct form_state *fs, struct el_form_control *fc, int utf8)
enum frame_event_status textarea_op_down (struct form_state *fs, struct el_form_control *fc, int utf8)
enum frame_event_status textarea_op_end (struct form_state *fs, struct el_form_control *fc, int utf8)
enum frame_event_status textarea_op_bob (struct form_state *fs, struct el_form_control *fc, int utf8)
enum frame_event_status textarea_op_eob (struct form_state *fs, struct el_form_control *fc, int utf8)
 Set the form state so the cursor is on the last line of the buffer.
enum frame_event_status textarea_op_enter (struct form_state *fs, struct el_form_control *fc, int utf8)
enum frame_event_status textarea_op_left (struct form_state *fs, struct el_form_control *fc, int utf8)
enum frame_event_status textarea_op_right (struct form_state *fs, struct el_form_control *fc, int utf8)
void set_textarea (struct document_view *doc_view, int direction)

Function Documentation

◆ area_cursor()

int area_cursor ( struct el_form_control * fc,
struct form_state * fs,
int utf8 )

Fixes up the form_state.vpos and form_state.vypos members.

Returns
the logical position in the textarea view.

◆ draw_textarea()

void draw_textarea ( struct terminal * term,
struct form_state * fs,
struct document_view * doc_view,
struct link * link )

◆ encode_textarea()

char * encode_textarea ( struct submitted_value * sv)

◆ free_textarea_data()

void free_textarea_data ( struct terminal * term)

◆ menu_textarea_edit()

void menu_textarea_edit ( struct terminal * term,
void * xxx,
void * ses_ )

◆ set_textarea()

void set_textarea ( struct document_view * doc_view,
int direction )

◆ textarea_edit()

void textarea_edit ( int op,
struct terminal * term_,
struct form_state * fs_,
struct document_view * doc_view_,
struct link * link_ )

◆ textarea_op_bob()

enum frame_event_status textarea_op_bob ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

◆ textarea_op_down()

enum frame_event_status textarea_op_down ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

◆ textarea_op_end()

enum frame_event_status textarea_op_end ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

◆ textarea_op_enter()

enum frame_event_status textarea_op_enter ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

◆ textarea_op_eob()

enum frame_event_status textarea_op_eob ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

Set the form state so the cursor is on the last line of the buffer.

Preserve the column if possible. This is done by getting current and last line and then shifting the state by the delta of both lines start position bounding the whole thing to the end of the last line.

◆ textarea_op_home()

enum frame_event_status textarea_op_home ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

◆ textarea_op_left()

enum frame_event_status textarea_op_left ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

◆ textarea_op_right()

enum frame_event_status textarea_op_right ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )

◆ textarea_op_up()

enum frame_event_status textarea_op_up ( struct form_state * fs,
struct el_form_control * fc,
int utf8 )