MCPcopy Index your code
hub / github.com/bpython/bpython / add_normal_character

Method add_normal_character

bpython/curtsiesfrontend/interaction.py:115–125  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

113 self.add_normal_character(e)
114
115 def add_normal_character(self, e):
116 if e == "<SPACE>":
117 e = " "
118 if len(e) > 1:
119 return
120 self._current_line = (
121 self._current_line[: self.cursor_offset_in_line]
122 + e
123 + self._current_line[self.cursor_offset_in_line :]
124 )
125 self.cursor_offset_in_line += 1
126
127 def escape(self):
128 """unfocus from statusbar, clear prompt state, wait for notify call"""

Callers 1

process_eventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected