theseus-rs / rsql

Command line interface for CockroachDB, DuckDB, LibSQL, MariaDB, MySQL, PostgreSQL, Redshift, Snowflake, SQLite3 and SQL Server
https://theseus-rs.github.io/rsql/rsql_cli/
Apache License 2.0
129 stars 5 forks source link

continue repl loop on interrupt, ctrl-D (EOF) still closes repl #175

Closed gazure closed 3 months ago

gazure commented 3 months ago

Describe the pull request

Proposing this to resolve a minor pain point I've had while using this tool.

Changes ctrl+c interrupt behavior to clear the current line and repeat the loop instead of closing the repl.

LMK if you think this should be a configuration flag like --sigint-ignore in the mysql/mariadb repls