From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-it0-f54.google.com ([209.85.214.54]) by ewsd; Mon Sep 3 15:19:17 EDT 2018 Received: by mail-it0-f54.google.com with SMTP id f14-v6so2187209ita.4 for <9front@9front.org>; Mon, 03 Sep 2018 12:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=00bLw2OpUYNufOJEWYv99rDTDituIlLt1IoDrr1EFdg=; b=NeIlUZj5XgzvDAtfuEJQpY2WAgqsQ67rtW53jm01Jz2clXWizxu1piQi0gqRQ5ukhn gADSHd1kCoDSvQwLQRB0x9d8wYl0x+HZmsr0bnB0ArrcBuQAyGb/UTuHPAsC9GQkCmIv sUmJHDdqbz92nkqiRsXF10LDF4s7/gJj6HuNWN9GF73VETF2r5BuErXf5opuQdGT9Rrr hf6lrxXjqQX0cRDDpTnWbRoYeEngpYIboUHt1D7M0/10JN03GQ+IH+WuF2cG3M+AT1+e 9U6Bro3zWaXr1u9sK70QLpiTeA5rCNL4/uVRePWYQNF5NOVXIXf9irVzNcM4k2W5JKDf NNQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=00bLw2OpUYNufOJEWYv99rDTDituIlLt1IoDrr1EFdg=; b=WtCtRpFATG9Kjrzlro4/xXTV4ogWIZvVzkgCcqt3XQLpIppAKRiD3HyPVEa9koL42L QwZJPyIDupBPhA/eALdZdfNiBHkDZScRlqmz8k+4SE8ym843OP9qgtCC+BrvvI2vTOy4 iybikDpfyZVw7fUh8ns3aAVukZ9ED8Hf7qJ+CsKp9h2zSgs3oXQxsOFPDZ15yuk1CUWE J48Hrrqo4ByKIfL75a+d4JfLUKqz2hPdwSESCthspFGHq7amScMb8rJXPoId28MRcspO Rsk4nUpJe2VgoQCLMjuB4QsQvz5Qr6vpEdSVjvnDzhL/0K+UCNT9j44E4gwlp5r3yT33 t2Gw== X-Gm-Message-State: APzg51Awrn10ouFqpZtD0lu05Jotp3G001MWPyPiwRIhl2r+5vsIN5sl /dRp390lE8GZuKY7FEY+WIEzSCOY X-Google-Smtp-Source: ANB0VdZoArgMiqiJ8fJt8qyPklYlUjWwmxIXWNgEV5IjMEihw+VXQse9QfgvwxGzXbte6UjwBg1lqw== X-Received: by 2002:a24:ac1d:: with SMTP id s29-v6mr6169059ite.3.1536002353849; Mon, 03 Sep 2018 12:19:13 -0700 (PDT) Return-Path: Received: from [10.20.20.169] (ics131-1.icsincorporated.com. [69.5.131.1]) by smtp.googlemail.com with ESMTPSA id g10-v6sm7146813iob.88.2018.09.03.12.19.13 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 12:19:13 -0700 (PDT) To: 9front@9front.org From: Sean Hinchee Subject: [9front] rio ctrlb patch Message-ID: Date: Mon, 3 Sep 2018 14:19:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: lifecycle storage session hypervisor Here's a patch courtesy of mora/noise that's been on my vps for awhile which changes the ctrl+b functionality to go to the end of the bottom-most line rather than just to the prompt. That is, if text is already present on the line you don't have to press ctrl+b ctrl+e and functionality with no text entered is the same as the existing ctrl+b functionality. diff -r eecec6d3b341 sys/src/cmd/rio/wind.c --- a/sys/src/cmd/rio/wind.c Mon Sep 03 20:54:26 2018 +0200 +++ b/sys/src/cmd/rio/wind.c Mon Sep 03 14:09:42 2018 -0500 @@ -675,6 +675,10 @@ return; case Kstx: /* ^B: output point */ wsetselect(w, w->qh, w->qh); + q0 = w->q0; + while(q0 < w->nr && w->r[q0]!='\n') + q0++; + wsetselect(w, q0, q0); wshow(w, w->q0); return; } Cheers, Sean