File: enums.py

package info (click to toggle)
prompt-toolkit 1.0.9-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,452 kB
  • sloc: python: 15,352; makefile: 3
file content (29 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from __future__ import unicode_literals


class IncrementalSearchDirection(object):
    FORWARD = 'FORWARD'
    BACKWARD = 'BACKWARD'


class EditingMode(object):
    # The set of key bindings that is active.
    VI = 'VI'
    EMACS = 'EMACS'


#: Name of the search buffer.
SEARCH_BUFFER = 'SEARCH_BUFFER'

#: Name of the default buffer.
DEFAULT_BUFFER = 'DEFAULT_BUFFER'

#: Name of the system buffer.
SYSTEM_BUFFER = 'SYSTEM_BUFFER'

# Dummy buffer. This is the buffer returned by
# `CommandLineInterface.current_buffer` when the top of the `FocusStack` is
# `None`. This could be the case when there is some widget has the focus and no
# actual text editing is possible. This buffer should also never be displayed.
# (It will never contain any actual text.)
DUMMY_BUFFER = 'DUMMY_BUFFER'