~ubuntu-branches/ubuntu/maverick/alevt/maverick

« back to all changes in this revision

Viewing changes to edline.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Schoepf
  • Date: 2002-03-17 15:09:36 UTC
  • Revision ID: james.westby@ubuntu.com-20020317150936-yglzziwcc0luz55k
Tags: upstream-1.6.0
ImportĀ upstreamĀ versionĀ 1.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EDLINE_H
 
2
#define EDLINE_H
 
3
 
 
4
#include "misc.h"
 
5
#include "xio.h"
 
6
 
 
7
#define EDLEN 128
 
8
 
 
9
struct edline
 
10
{
 
11
    struct xio_win *xw;
 
12
    u8 *prompt;
 
13
    void (*exit_func)();
 
14
    void *exit_data;
 
15
    void (*old_handler)();
 
16
    void *old_data;
 
17
 
 
18
    u8 buf[EDLEN];
 
19
    int plen;           // prompt len
 
20
    int len;            // current len (excl prompt)
 
21
    int offs;           // current scroll offset
 
22
};
 
23
 
 
24
struct edline *edline_new(struct xio_win *xw, u8 *prompt, u8 *preset,
 
25
                                                void *exit_func, void *data);
 
26
void edline_abort(struct edline *el);
 
27
 
 
28
#endif