Sets the 'default' input string for the next command line. Example:: In [1]: _ip.set_next_input("Hello Word") In [2]: Hello Word_ # cursor is here
(self, s, replace=False)
| 2295 | |
| 2296 | @skip_doctest |
| 2297 | def set_next_input(self, s, replace=False): |
| 2298 | """ Sets the 'default' input string for the next command line. |
| 2299 | |
| 2300 | Example:: |
| 2301 | |
| 2302 | In [1]: _ip.set_next_input("Hello Word") |
| 2303 | In [2]: Hello Word_ # cursor is here |
| 2304 | """ |
| 2305 | self.rl_next_input = s |
| 2306 | |
| 2307 | #------------------------------------------------------------------------- |
| 2308 | # Things related to text completion |