0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.05k stars 151 forks source link

Copying responses from ChatGPT is understood as separate lines. #121

Open moshpirit opened 1 year ago

moshpirit commented 1 year ago

If I ask for something, like "give me the first 3 lines of lore ipsum text" I get:

chatgpt Sure! Here are the first three lines of Lorem Ipsum text:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

Notice that there is a line break (between "tempor" and "incididunt") due to the size of the terminal. Is there any way to fix it so when pasting the response, we can get this?:

chatgpt Sure! Here are the first three lines of Lorem Ipsum text:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,