forked from bpython/bpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbpython.1
More file actions
105 lines (99 loc) · 2.89 KB
/
bpython.1
File metadata and controls
105 lines (99 loc) · 2.89 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH BPYTHON 1 "August 13, 2008"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
bpython \- a fancy curses interface to the Python interactive interpreter
.SH SYNOPSIS
.B bpython
.I ini file
.SH DESCRIPTION
The idea is to provide the user with all the features
in\-line, much like modern IDEs, but in a simple,
lightweight package that can be run in a terminal
window.
.B * In\-line syntax highlighting.
.RS
Hilights commands as you type!
.RE
.B * Readline\-like autocomplete with suggestions displayed as you type.
.RS
Press tab to complete expressions when there's only one suggestion.
.RE
.B * Expected parameter list.
.RS
This displays a list of parameters for any function you call. It uses the inspect module, then tries pydoc.
.RE
.B * Rewind.
.RS
This is a bit misleading, but it code that has been entered is remembered, and when you Rewind, it pops the last line and re\-evaluates the entire code. This is error\-prone, and mostly useful for defining classes and functions.
.RE
.B * Pastebin code/write to file.
.RS
This posts the current buffer to a pastebin (paste.pocoo.org) or writes it to a file.
.RE
.B * Flush curses screen to stdout.
.RS
Unlike other curses apps, it dumps the screen data to stdout when you quit, so you see what you've done in the buffer of your terminal.
.RE
.SH KEYS
.B <C\-d>
Exit
.RS
Exits the interpreter, like normal interactive Python.
.RE
.B <C\-r>
Rewind
.RS
Rewinds and "undoes" the last statement, read
.B DESCRIPTION
for more info.
.RE
.B <F2>
Save
.RS
Saves the current buffer to a file.
.RE
.B <F8>
Pastebin
.RS
Posts the current buffer to
.B http://paste.pocoo.org/
(will probably become configurable), and displays the URL.
.RE
.B <Tab>
Autocomplete
.RS
If there's an unambigious completion of the expression, fill it in.
.RE
.SH FILES
~/.bpython.ini
.RS
Your bpython config. See sample.ini (in /usr/share/docs/bpython/examples on Debian) for various options you can use, or read
.BR bpython.ini (5)
.
.RE
.SH SEE ALSO
.BR bpython.ini (5),
.BR python (1).
.SH KNOWN BUGS
Triple quoted strings over multiple lines work, but they're not highlighted
properly.
.SH AUTHOR
bpython was written by Robert Anthony Farrell <robertanthonyfarrel@gmail.com>.
.PP
This manual page was written by Jørgen Pedersen Tjernø <jorgen@devsoft.no>,
for the Debian project (but may be used by others).