Files
node/doc/api
Mattias Runge-BrobergandColin Ihrig d1baae3640 readline: add getPrompt to get the current prompt
Since there is a setPrompt() there should be a getPrompt().
There are use-cases where it is needed to know what the
current prompt is. Adding a getPrompt() negates the need
to store the set prompt externally or read the internal
_prompt which would be bad practice.

Co-authored-by: Colin Ihrig <cjihrig@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/33675
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
2020-11-22 10:19:09 -08:00
..
2020-10-20 12:05:10 +01:00
2020-10-20 12:05:10 +01:00
2020-11-04 19:08:07 +01:00
2020-11-03 17:54:08 +01:00
2020-11-09 13:35:03 -05:00
2020-10-09 18:46:47 +00:00
2020-11-09 13:34:55 -05:00
2020-10-20 12:05:10 +01:00
2020-11-03 17:54:22 +01:00
2020-11-10 14:04:38 -05:00
2020-11-04 19:08:07 +01:00
2020-10-15 19:29:09 -04:00
2020-10-09 18:46:47 +00:00
2020-10-01 06:19:25 -07:00
2020-11-09 13:35:06 -05:00
2020-10-21 11:17:57 +01:00
2020-10-20 12:05:10 +01:00
2020-11-04 19:08:07 +01:00
2020-10-15 03:44:25 -07:00
2020-10-20 12:05:10 +01:00
2020-11-22 10:19:02 -08:00
2020-11-10 11:40:59 -05:00
2020-10-06 15:52:10 -07:00