Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Get current readline buffer (rl_line_buffer) #21

Open
avuserow opened this issue Mar 31, 2018 · 0 comments
Open

Feature Request: Get current readline buffer (rl_line_buffer) #21

avuserow opened this issue Mar 31, 2018 · 0 comments

Comments

@avuserow
Copy link

I would like a method to get the current readline buffer. This is useful when I'm creating a custom function that is bound to a key, so that I can do actions based on the previous text.

This value is stored in the rl_line_buffer global variable, so cglobal('readline', 'rl_line_buffer', Str); would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant