Hi,

That’s definitely a way to solve the problem, thanks.

What I have a question is that, I think the wrapping is the terminal emulator’s 
work.
Like when pwd outputs a wider-than-window-width result, it’s cut off the 
border, with
a newline. Couldn’t the prompt behavior the same way?

I may get into some source code to see how it works.

-- 
BR,
Tony Wang

On June 17, 2013 at 15:18:23, ridiculous_fish (corydo...@ridiculousfish.com) 
wrote:

Hi Tony,  

fish does not attempt to wrap or truncate long prompts. Prompts often contain 
ANSI escape sequences, which make them difficult to wrap or truncate.  

What you can do is inspect the value of $COLUMNS in your fish_prompt, and avoid 
outputting one that is too long. If you have any other ideas or suggestions for 
what fish should do here, I'd love to hear them.  

Thanks,  
_fish  

On Jun 15, 2013, at 8:04 AM, Tony Wang <www...@gmail.com> wrote:  

> Hi,  
>  
> I’ve noticed that if the prompt is very long,  
> (longer than the window width), it’ll become  
> a single ‘>’, and it even won’t show a second  
> line.  
>  
> What’s the consideration behind it?  
> I don’t think it’s friendly to users.  
> I tried to google, but found nothing.  
>  
> Is there any configuration to change that?  
> Or, can I check if it happens, so I can try to  
> show something abbreviated instead?  
>  
> Thanks! :)  
>  
> --  
> BR,  
> Tony Wang  
>  
> ------------------------------------------------------------------------------
>   
> This SF.net email is sponsored by Windows:  
>  
> Build for Windows Store.  
>  
> http://p.sf.net/sfu/windows-dev2dev  
> _______________________________________________  
> Fish-users mailing list  
> Fish-users@lists.sourceforge.net  
> https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to