Skip to content
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    6 Posts
    15 Views
    T
    Member 14968771 wrote: Your analogy is plausible, however, it does not explain how clicking on the text highlights it – if it is "gone" / does not exist per your explanation. It does not exist in your application (well, your application may still have the original, from which a copy was sent to xterm, but that is a different object). But xterm saves in its own buffer the output it receives from the application. It uses the contents of the buffer to redraw the window, say, if you resize it, or scroll the text up and down. This text buffer belongs to xterm. It is not accessible to your application. The highlighting is done in this buffer, by xterm. All you input and output goes through xterm (as long as your focus is in the xterm window). xterm knows where you click your mouse, and knows the size of character cells in its window (they are all the same, at least in classic xterm). Calculating from the mouse coordinates which character cell was clicked is trivial. (If you use variable-width font, it is just semi-trivial.) xterm starts at from this character and looks at the preceding and following characters in its text buffer. As long as they are 'word characters', it adds highlight to it and searches forward, but stops on whitespace, punctuation etc. If you could monitor the connection between xterm and your application when you mark the word, you would see none. The marking is something xterm does for itself, alone. I haven't been working with xterm for a number of years, and don't remember all the details, but like most *nix-born applications, it has a ton of options. I guess that you can tell xterm to give you all the raw input - certainly from the keyboard, so that your application can interpret copy (mark) and paste keystrokes, but maybe even mouse input. Your problem is that xterm manages its own scrolling, word wrapping etc. and your application cannot know where it has placed the output text you gave it. So even if you get the mouse click position, you don't have the information to know which word the cursor was pointing at. If I understand your need correctly (and you do not want to give your application its own tailor made X-based user interface), the simple but somewhat pedal driven way to do it is to open a text editor with a new empty file (or one where you want to add another log record), mark the text in your xterm window, and then past them into the file in the text editor. There are multiple ways to mark
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Note to self

    The Lounge com linux lounge
    3
    0 Votes
    3 Posts
    0 Views
    D
    Had that happen once. Filled the "pan" with water, let it soak for several hours, bread rinsed right out. "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
  • Skype, you're just weird

    The Lounge linux question lounge
    5
    0 Votes
    5 Posts
    0 Views
    R
    OT : Have you been in cybersecurity lately ? Do not escape reality : improve reality !
  • Does Java have a future?

    The Lounge android learning java com linux
    21
    0 Votes
    21 Posts
    1 Views
    P
    I'm afraid that ship has already sailed :( Paul Sanders. If I had more time, I would have written a shorter letter - Blaise Pascal. Some of my best work is in the undo buffer.
  • 0 Votes
    2 Posts
    0 Views
    D
    How about we run them outwards, starting from an instance of Doom? Or Minecraft. :laugh: Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver
  • Fueled by Decaff's Great Idea

    The Lounge css com linux help
    12
    0 Votes
    12 Posts
    0 Views
    B
    It seems to me no matter how headers are #include'd there is an order w/ a top and a bottom. Perhaps it is tree-like. In which case each branch may have different needs at a common root. This would complicate things but can still be automated per FbD's idea as near as I can discern. Specifically if a root of one branch does not require a particular file but another branch w/ the same root does, the automation keeps track of this and #include's it for both branches.
  • My Great Idea

    The Lounge linux help tutorial
    21
    0 Votes
    21 Posts
    2 Views
    H
    technically it was "spidey" - comes from the old spiderman comics. :) To err is human. Fortune favors the monsters.
  • 0 Votes
    11 Posts
    23 Views
    L
    OK, when OS residing in RAID fails - does RAID copies the failed code into ALL partitions ? How would that be of ANY help ?
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    16 Posts
    0 Views
    P
    I've never needed to back out a Ubuntu update, so I'm not sure of the exact procedure. It probably depends on how you get the updates pushed to you. (I use Canonical's Livepatch.) The magic word for searching is "blacklist", so something like "blacklist ubuntu module" or "blacklist ubuntu update" should drag the usual suspects out of the ether. I know you can block things as late as actually loading the kernel, but that potentially leaves a hole in functionality. I've seen that most often used on 3rd party video drivers (why are we not surprised?) Sorry I can't give you a slick answer. Cheers, Peter Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
  • 0 Votes
    8 Posts
    0 Views
    T
    The answer is simple: To push users over to more powerful processors so that they will take less notice of how resource demanding modern Linux has become.
  • 0 Votes
    3 Posts
    9 Views
    L
    No good - I have RAID5 where I keep my C++ code, activating on ONE disk is an invite to RAID complications. It failed SAME way on TWO partitions with same version of Ubuntu. I am a sole ( and sore ) user of OS. It is not data failure my data RAID5 is still OK - - nothing to recover when OS does not boot. I have deleted BOTH failing OS partitions, installed NEW latest version of Ubuntu and having NEW issues with it.... life is good... Cheers
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    4 Posts
    3 Views
    J
    :laugh:, glad you figured it out. But you shouldn't chmod 777. That directory should only be writable by the Apache process. Also, it should not live in your document root. /var/www website.com html index.php uploads some_file.pdf Jeremy Falcon
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    C
    The parent shouldn't be deleted if it has children. Let me do a refresh and see if that fixes things. cheers Chris Maunder
  • 0 Votes
    5 Posts
    0 Views
    D
    Mostly the former. What Linus should do is to make his expectations about when PRs should be submitted to be included in the next kernel explicit. ie for inclusion in the kernel release on day D, all non-vulnerability fix PRs must be submitted by D-5. Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius
  • 0 Votes
    3 Posts
    10 Views
    L
    I spent an hour earlier trying to figure out a way to do this. I need get my Unix books out of storage.