Zsh - lots of blank space upon resizing VTE based terminals

Hello
I have an issue that is rendering me sleepless these days. It's about zsh and its behaviour when being run inside a VTE based terminal (e.g. gnome-terminal, xfce4-terminal, roxterm, sakura, ...).
When I increase the terminal height, if the buffer exceeds the window height, the content above won't get correctly shifted down, but simply blank space is added at the bottom.
On the contrary, when I decrease the terminal height, it does not simply remove the blank space at the bottom, but instead shifts up the buffer, keeping the blank space.
This is quite annoying, because everytime I resize my windows (which happens quite often, as I'm in a tiling WM), I find myself scrolling up in order to see older output because there's only one line remaining. And even worse, as I start typing, it all scrolls back down, even though I type within the visible area.
This does not happen upon running another shell (bash, dash), or zsh in a non-VTE terminal (urxvt, xterm), however I'd like to stay with zsh and xfce4-terminal (as I'm having lots of other issues with urxvt).
After hours of googling, I haven't found any entry about a similar problem, which I find slightly confusing, since one of my friends has exactly the same behaviour with xfce4-terminal and zsh (he just hasn't noticed until I asked him, as he doesn't resize his terminal windows that often).
My question(s):
Does anybody else use zsh in a VTE-based terminal? And if so, do you get the same behaviour? And if not, could you help me out with your configuration?

ayekat wrote:
linvinus wrote:in zsh it hardcoded,
you can check that if you run zsh inside script (script — make typescript of terminal session)
Oh, you're right. It always prints \e[J before printing a new prompt. I suppose this is due to the 'suggestions-below-the-prompt' thing.
Thanks for the script command. I learn something new every day ^^
Now I applied the patch and it works for one half of the problem:
When I decrease the window size, it correctly eats up the blank space at the bottom (so the text no longer gets pushed upwards).
However, when I increase the window size, it still adds blank space to the bottom. So basically once a window has been sized down to, say, 10 rows, it will always stay at those 10 rows (except of course there's some new output).
i think this is normal, but may be you are right.
i will see what can be done better.
ayekat wrote:However I just saw that that I've patched the GTK2 version of VTE, perhaps it's better with the vte3 package.
no it will the same.
ayekat wrote:
... this also explains why some terminals like xfce4-terminal and lxterminal behave as described above, while others like gnome-terminal or roxterm just continue bugging.
Again, thank you!
I'll try this afternoon if it works with the vte3 package.
no problem

Similar Messages

  • Lots of blank space when printing array with only last element printed

    I have a slight problem I have been trying to figure it out for days but can't see where my problem is, its probably staring me in the face but just can't seem to see it.
    I am trying to print out my 2 dimensional array outdie my try block. Inside the trying block I have two for loops in for the arrays. Within the second for loop I have a while to put token from Stringtokeniser into my 2 arrays. When I print my arrays in this while bit it prints fine however when I print outside the try block it only print the last element and lots of blank space before the element.
    Below is the code, hope you guys can see the problem. Thank you in advance
       import java.io.*;
       import java.net.*;
       import java.lang.*;
       import java.util.*;
       import javax.swing.*;
       public class javaflights4
          public static final String MESSAGE_SEPERATOR  = "#";
          public static final String MESSAGE_SEPERATOR1  = "*";
          public static void main(String[] args) throws IOException
             String data = null;
             File file;
             BufferedReader reader = null;
             file = new File("datafile.txt");
             String flights[] [];
                   //String flightdata[];
             flights = new String[21][7];
             int x = 0;
                   //flightdata = new String[7];
             int y = 0;
             try
                reader = new BufferedReader(new FileReader(file));   
                //data = reader.readLine();   
                while((data = reader.readLine())!= null)   
                   data.trim();
                   StringTokenizer tokenised = new StringTokenizer(data, MESSAGE_SEPERATOR1);
                   for(x = 0; x<=flights.length; x++)
                      for(y = 0; y<=flights.length; y++)
                         while(tokenised.hasMoreTokens())
                            //System.out.println(tokenised.nextToken());
                            flights [x] [y] = tokenised.nextToken();
                            //System.out.print("*"+ flights [x] [y]+"&");
                   System.out.println();
                catch(ArrayIndexOutOfBoundsException e1)
                   System.out.println("error at " + e1);
                catch(Exception e)
                finally
                   try
                      reader.close();
                      catch(Exception e)
             int i = 0;
             int j = 0;
             System.out.print(flights [j]);
    //System.out.println();

    A number of problems.
    First, I bet you see a lot of "error at" messages, don't you? You create a 21x7 array, then go through the first array up to 21, going through the second one all the way to 21 as well.
    your second for loop should go to flights[x].length, not flights.length. That will eliminate the need for ArrayIndexOutOfBounds checking, which should have been an indication that you were doing something wrong.
    Second, when you get to flights[0][0] (the very first iteration of the inner loop) you are taking every element from the StringTokenizer and setting flights[0][0] to each, thereby overwriting the previous one. There will be nothing in the StringTokenizer left for any of the other (21x7)-1=146 array elements. At the end of all the loops, the very first element in the array (flights[0][0]) should contain the last token in the file.
    At the end, you only print the first element (i=0, j=0, println(flight[ i][j])) which explains why you see the last element from the file.
    I'm assuming you have a file with 21 lines, each of which has 7 items on the line. Here is some pseudo-code to help you out:
    count the lines
    reset the file
    create a 2d array with the first dimension set to the number of lines.
    int i = 0;
    while (read a line) {
      Tokenize the line;
      count the tokens;
      create an array whose size is the number of tokens;
      stuff the tokens into the array;
      set flights[i++] to this array;
    }

  • Slow xfce4-terminal (and all vte-based terminals)

    Hi everyone!
    So this is the problem, i have slow output in all vte-based terminals.
    I tried this command:
    time seq -f 'teeeeeeeeeeeeeeeeeeeeeeeeeeeeeest %g' 100000
    to measure the performance, and in xfce4-terminal i get about 7.6 secs but in urxvt, for example, i get about 0.9 secs.
    Any suggestions? Thanks!
    PS: Sorry for my bad English.

    crew4ok wrote:
    goran'agar wrote:My suggestion is to uninstall xfce4-terminal and move to urxvt. Oh, well, that's what I did.
    If i don't get an answer, i'll do this way.
    My suggestion was serious. All vte terminals are slow and there's nothing you can do to speed them up. urxvt is way faster.

  • Blank space on resize

    Hello everyone
    I worked for several weeks on a responsive project and I realized that when resizing the page width and height adapt but the space occupied by the site virtually remains constant (800px in my case). This creates me a big gap at the bottom with a vertical scroll bar.
    I said that the site was made in "Edge Animate 2014" (the penultimate version).
    You can see the result here :
    http://www.nicolas-br.com/trevidic/loader.html
    Do you know a solution for adjusting the problem?
    thank you very much
    Nicolas

    Hello and thank you for responding,
    I actually had big problems when I wanted to go from the 2014 version of the 2014.1 release, many "exception error" so as I am at the end of my project I do not want to risk create more problems.
    For the "center stage", I have already tried and instead create a space below it distributes the top and bottom space always with a scroll.
    Nicolas

  • I did something that changed my viewing screen and cannot correct it. It ssems that my screen is too big for the monitor. Ihave a lot of blank space on the left side and cannot view my side slide bar on the right side-how can i adjust the screen

    the viewing screen is off center -govong blanck space to the left and not allowing me see the slide bar on right

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How to remove the extra or blank space from RTF Template

    Hi All,
    Try to remove the extra space from  xml template.
    Here I have attached the .xml file with .rdf, here the issue is when you load the data we will get 2 page output but when I am trying to add any column or extra space in the last page of this template the output getting 4 pages with lot of blank space. Could you please guide me to solve this issue.
    Could you please let me know how to do the attachement in this forum as I am new to this community.
    Regards,
    Sushant

    Can you drop in a mail with RTF, xml data to [email protected], I will help you on the issue.

  • Blank spaces in code view

    Hello,
    Whenever I copy and paste text from another website -- sometimes from my own website after it goes live -- onto Dreamweaver, the text looks just fine in Design view. Fonts and paragraphs are preserved, as they're supposed to according to my preferences.
    However, when I look at the code view, there are always several -- sometimes a whole lot of -- blank spaces separating words; blank spaces that were not in the original text (even in code view) and that can't be detected in Dreamweaver's design view.
    It looks ok online just like it looks ok in Dreamweaver's design view, but I'm just a little concerned that those blank spaces may confuse search engine crawlers.
    For instance. In design view and online, one sees:
    "Great Holiday"
    but in the code view/source page you'll see
    "Great                    Holiday"
    That's what the crawlers and spiders will see as well. And they may think that "Great Holiday" and "Great                    Holiday" are two different sets of keywords when they should be the same.
    How can I ensure that only *one* blank space is allowed in Dreamweaver's code view, whenever I copy and paste text from webpages? Is there a way that I can preserve the texts' format and fonts while ensuring *one* blank space in code view?
    Any suggestions would be much appreciated.

    No, actually this is what happens:
    If one of us copies text from our blog online (www.altfg.com/blog/) we see the following in Dreamweaver's design view:
    Right behind Clash of the Titans, DreamWorks Animation’s How to Train Your Dragon, featuring the voices of Jay Baruchel, Gerard Butler, and
    America Ferrera, earned $3.8 million (+9.2%) domestically on Thursday,
    but in code view there are blank spaces between words. Blank spaces that shouldn't be there:
    <p>Right behind <em><strong><a href=
    "http://www.altfg.com/blog/movies-431/clash-of-the-titans-box-office-predictions/"
    >Clash       of the Titans</a></strong></em>, DreamWorks Animation’s <em>How to   Train Your Dragon</em>, featuring     the voices of <strong>Jay Baruchel</strong>,<strong> <a href=
    "http://www.altfg.com/blog/photos/bradley-cooper-gerard-butler-andrew-r-jones-810/"
    >Gerard       Butler</a></strong>, and <strong>America Ferrera</strong>, earned     $3.8 million (+9.2%) domestically on Thursday, </p>
    Notice the blank spaces separating "featuring      the voices" or "Gerard       Butler." Those shouldn't be there. Maybe it makes no difference. On the browsers, it all looks fine. But is there a way to ensure that Dreamweaver doesn't allow more than one blank space between words in code view?
    Also, *no one* has responded to my query about automatic hyperlinks for images. Any ideas?
    That has been such a drag.
    http://forums.adobe.com/thread/613801?tstart=30
    Thank you.

  • Tons of blank space:

    Okay, maybe not a ton of it, but there's a lot of blank space after the movie's done. I tried getting rid of it, but there's nothing to select. Oh, and I put in a song that stretched the time line to make said blank space. Thanks for the help!

    If you want to song to play out which is not a bad idea add something to see while it is like a still or longer titles etc. I have a few clips of waves lapping at the beach which I can put in for a title background or just a visual while the song ends.

  • Af:inputText problem : how to display text containing blank spaces

    Hi,
    I have a inputText in af:table with clickToEdit mode, when I commit a value from input text
    for e.g
    "This is______________ a ________text with_________lot________of_______blank spaces"
    (_ undescore represents spaces)
    it get saved perfectly fine to db, but when I am in display mode , it removes all spaces leaving one space
    "This is a text with lot of blank spaces"
    seems like problem is with while displaying, component is not rendering more than one blank spaces
    Message was edited by:
    user626222

    Hi Frank,
    Thanks for your response,
    I am using inputText in af:table with editingMode="clickToEdit"
    so, when its in edit mode, it deplays the correct value as its saved in db
    as soon as you come back to view mode , it eliminates extra spaces replaces with one space
    Thank you

  • Error Blank spaces smartforms

    Hello,
    I have an smartform who recibes a table of char255 lines. The only thing I do is a loop over it and show each line.
    My problem is I have some lines with a lot of blank spaces (for example"01                    7,50     10,30") and on the screen those spaces doesn´t fill the same space each char so it get shown with bad format.
    Do you know why is this happening??
    Rgds
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 17, 2009 11:43 AM

    You may display the OTF spool in RAW mode so that to make sure that the COURIER font has been used (because it might have been automatically replaced by SAP, if your device type does not allow COURIER, see SE73 printer fonts and also "Font conversion" button which converts all existing system fonts).
    Moreover, if you use SAPWIN, SAPlpd program may have a replacement font defined for Courier, run saplpd.exe manually and check this option.

  • Resizing Safari Window causes blank space

    When I resize a safari window using the corner (bottom right) it leave a blank space if I make he page bigger and doesnt fill the page at all unless i press refresh.

    .oO(CJR 2007)
    >I'm pretty new to website design and this might seem very
    basic, but how is it
    >possible to resize a browser window automatically to fit
    the content on my page
    >using Dreamweaver CS3?
    You should rather make the site fit the browser window.
    > The content of my page is 700px by approximately 650 but
    I want the browser
    >window to show just this content and not the blank space
    surrounding it.
    Resizing the browser window is considered _very_ rude, if it
    will work
    at all - modern browser prevent such abuse of JavaScript.
    You should more concentrate on the content and the usability
    of the site
    to attract visitors. Keeping the layout flexible is usually
    the best way
    to go. But even if it has to be a fixed-width layout, you
    shouldn't mess
    with the user's browser settings, but for example center the
    entire site
    in the browser. Solutions for that are posted here every
    second day.
    Micha

  • I recently deleted a partition on my mac that was intended to install windows. Now it is just blank space. I attempt to resize my Macintosh HD partition to cover entire hard drive space and hit apply but nothing happens (disk utility). Any ideas?

    I have a few problems...
    I wanted to make a partition to install windows, I tried to use bootcamp 5 where it wanted to partition and install windows at the same time. I do not have a cd of windows but instead had it on a flash drive. Bootcamp couldn't find it. Instead I was reading forums and found that there was another way to install windows by partioning your harddrive using the disk utility, downloading the bootcamp drivers, and installing rEFIt (an app that when starting the compouter a menu would come up to boot windows from the flashdrive). I try that and the windows install screen gets me to the point where I pick a partition. I attempt to pick the partitioned drive but a message comes up telling me that "this is of the GPT partition style" and windows cannot be installed on the drive.
    So now I went back to disk utility and deleted the partition but there is still blank space. I wanted to retry and install windows through bootcamp (somehow) but a message comes up that there cannot be any partitions or that a partition must be created using bootcamp. SO i keep trying to drag the partition over the blank space and hit apply but nothing happens.
    By the way I was trying to install windows 8 pro, some forums would say that you cant install win8 however I found others that said you could. How do I fix my partition and how do I use bootcamp to install windows (preferrably 8)?

    Csound1 What Ive been trying to explain is that I have been running bootcamp, I open the app where the first screen is the introduction, i hit continue, the first time I select "download the latest windows support software fromm Apple" then I return and instead select "Install Windows 7." Then hit continue. The third screen is where I "Create a Partition for Windows" I set Windows to 80 gigs then hit INSTALL. As stated before Bootcamp cannot find the install drivers saying "The installer disc could not be found." My windows software is on a USB drive not a disc, I tried using a virtual disc reader to make it appear that the windows software was running on a disc, still no luck. What I would like to know is how to install windows on bootcamp.

  • How do I clear the blank space between content and footer?

    In the process of revising a Muse website, I deleted some content from one of the pages and revised the content that remained on the page. Now I have a blank area between the bottom of the revised content and the top of the footer, and I can't seem to get rid of the blank space. It doesn't appear that there are any text blocks or other images in that area, so I can't find any objects to delete. Help?
    The website is currently published in a draft mode for client review. You can examine it at: http://page7creative.com/clients/coremove_jun2012draft/retreats.html. The page in question is the Retreats page. Restarting Muse made no difference. I work on the Mac platform.
    Before I sent this post, I decided to try creating a new page, then copy/paste the content onto the new page, and save the Muse site under a different name. Lo and behold, the page (and the site) works like it should...without any extra space above the footer on that page. It would appear that something went astray when I deleted content on that page. I can use the new page to get the site working properly, but decided to go ahead and send this post so that you can look at the page code and perhaps see what is wrong that is causing the blank space...in case I ever run into this again.
    Thank you.
    pyxis83

    Thanks for sending your file.
    There is a graphic at the bottom of the content area of the Retreats page that's been cropped to a size of zero width and 2 pixels in width.
    Unfortunately, there's a bug with pointer tool drag selection (aka marque selection) that prevents it from selecting an item that has zero width or zero height. Therefore the easiest way to select this item to delete it is to select any other item on the page, then hit the tab key repeatedly to cycle through every item on the page. When you get to this item you should see a little pile of selection handles at the left edge of the third column and right at the bottom of the content area. The width and height will display as zero and 2. Delete this item and the page will resize to fit the remaining content.

  • Issues in exporting SSRS report to PDF format in Report Server - Blank spaces are deleted

    Hi Gurus,
    I have a problem in exporting SSRS report to PDF format. It deletes all the blank spaces when I use bullet in a Text box and try to export to PDF formt in Report Server . For example
    •             Project submitted to the TRC
    Result in PDF format:
         • ProjectsubmittedtotheTRC
    I also noted that when I try to export to PDF in Visual Stuio 2005 (Business Intelligence development studio), it does not delete any blank spaces and shows the correct aligned Data in PDF format.
    Please help me as it is frustrating a lot
    I would highly appreciate for your quick response 

    Was there ever a solution found for this as i have the same issue.
    When bullet point is entered in a field all the spaces are removed when exported to PDF
    i tried exporting to excel and it does not remove spaces, however this is no use to me as it needs to be in PDF
    Using IE 7 (Don't think the browser has anything to do with it as this happened via a subscription)
    Didn't know SSRS had specific Service Packs, i though they came as patches to SQL Server (SQL Server is on Service Pack 3)
    This should be easy to replicate all you need to do is copy text containing a bullet point into a sql server database field and then add this field to a report export to pdf and the spaces are gone
    Thanks in advance,
    Mark Brunton
    brunzire

  • Getting blank space after paragraph in RTF template

    Hi there,
    Thanks so much for all your help for your help.
    I am running into one issue in RTF template, wanted to share with you to get any input on this. I have paragraph and Idid put in table at the top and there is xml tag that gives names after that paragraph. but I get blank spaces after paragraph and it shows names from that xml tag.
    I tried to remove spaces by deleting between pargraph and xml tag<name> , still i get blank page between paragraph text and names.
    Can anyone help me or point me to get it resolved that would be greatly appreciated.

    Thanks Varma for your prompt response and your time on this. I am still trying to get any other options to get this done as that is the requirement and with that blank page looks not fully satisfied for users and am trying any other ways to do implement this..
    That's the reason I thought of putting this post again to get more inputs that may have.
    Can anyone put some light onthis.
    Thanks a lot..
    sk

Maybe you are looking for