9fans.net/go@v0.0.7/cmd/samterm/samterm.h.go (about)

     1  package main
     2  
     3  const (
     4  	MAXFILES    = 256
     5  	READBUFSIZE = 8192
     6  	NL          = 5
     7  )
     8  
     9  const (
    10  	Up = iota
    11  	Down
    12  )
    13  
    14  type Section struct {
    15  	nrunes int
    16  	text   []rune
    17  	next   *Section
    18  }
    19  
    20  type Rasp struct {
    21  	nrunes int
    22  	sect   *Section
    23  }
    24  
    25  const Untagged = 0xFFFF
    26  
    27  type Text struct {
    28  	rasp  Rasp
    29  	nwin  int
    30  	front int
    31  	tag   int
    32  	lock  int8
    33  	l     [NL]Flayer
    34  	id    int64
    35  }
    36  
    37  type Readbuf struct {
    38  	n    int
    39  	data [READBUFSIZE]uint8
    40  }
    41  
    42  type Resource int
    43  
    44  const (
    45  	RHost Resource = iota
    46  	RKeyboard
    47  	RMouse
    48  	RPlumb
    49  	RResize
    50  	NRes
    51  )