<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2024-03-31</id>
	<title>Blog: 2024-03-31 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2024-03-31"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2024-03-31&amp;action=history"/>
	<updated>2026-04-06T23:15:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=Blog:_2024-03-31&amp;diff=1051&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;Sigh... haven&#039;t got this vim help menu thing working, but it&#039;s maybe a good idea, to the extent that vim customization ideas can be good ideas.  &lt;pre&gt; .vim $ cat ftplugin/help.vim set timeout timeoutlen=200 nnoremap &lt;silent&gt; &lt;buffer&gt; q :q&lt;cr&gt; &lt;/pre&gt;  Fan of this https://www.villagevoice.com/a-chat-with-das-racist-the-geniuses-behind-combination-pizza-hut-and-taco-bell/  Continuing with my little python scheme wrapper. It hangs when you hit enter, I guess the scheme subpr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2024-03-31&amp;diff=1051&amp;oldid=prev"/>
		<updated>2024-03-31T17:05:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sigh... haven&amp;#039;t got this vim help menu thing working, but it&amp;#039;s maybe a good idea, to the extent that vim customization ideas can be good ideas.  &amp;lt;pre&amp;gt; .vim $ cat ftplugin/help.vim set timeout timeoutlen=200 nnoremap &amp;lt;silent&amp;gt; &amp;lt;buffer&amp;gt; q :q&amp;lt;cr&amp;gt; &amp;lt;/pre&amp;gt;  Fan of this https://www.villagevoice.com/a-chat-with-das-racist-the-geniuses-behind-combination-pizza-hut-and-taco-bell/  Continuing with my little python scheme wrapper. It hangs when you hit enter, I guess the scheme subpr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sigh... haven&amp;#039;t got this vim help menu thing working, but it&amp;#039;s maybe a good idea, to the extent that vim customization ideas can be good ideas.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.vim $ cat ftplugin/help.vim&lt;br /&gt;
set timeout timeoutlen=200&lt;br /&gt;
nnoremap &amp;lt;silent&amp;gt; &amp;lt;buffer&amp;gt; q :q&amp;lt;cr&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fan of this https://www.villagevoice.com/a-chat-with-das-racist-the-geniuses-behind-combination-pizza-hut-and-taco-bell/&lt;br /&gt;
&lt;br /&gt;
Continuing with my little python scheme wrapper. It hangs when you hit enter, I guess the scheme subprocess can&amp;#039;t handle it&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from subprocess import Popen, PIPE&lt;br /&gt;
from pexpect.replwrap import REPLWrapper&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def safe_input(prompt):&lt;br /&gt;
    try:&lt;br /&gt;
        return input(prompt)&lt;br /&gt;
    except EOFError:&lt;br /&gt;
        return None&lt;br /&gt;
&lt;br /&gt;
def main():&lt;br /&gt;
    scheme = REPLWrapper(&amp;#039;scheme&amp;#039;, &amp;#039;ts&amp;gt; &amp;#039;, prompt_change=None)&lt;br /&gt;
&lt;br /&gt;
    line = &amp;#039;&amp;#039;&lt;br /&gt;
    prompt = &amp;#039;&amp;gt; &amp;#039;&lt;br /&gt;
&lt;br /&gt;
    while True:&lt;br /&gt;
        expression = safe_input(prompt)&lt;br /&gt;
        if expression is None:&lt;br /&gt;
            return&lt;br /&gt;
&lt;br /&gt;
        print(&amp;#039;expression is: &amp;#039; + repr(expression))&lt;br /&gt;
        line += &amp;#039; &amp;#039; + expression&lt;br /&gt;
&lt;br /&gt;
        if line.count(&amp;#039;(&amp;#039;) == line.count(&amp;#039;)&amp;#039;):&lt;br /&gt;
            print(&amp;#039;EQ line is: &amp;#039; + repr(line))&lt;br /&gt;
&lt;br /&gt;
            result = scheme.run_command(line)&lt;br /&gt;
&lt;br /&gt;
            print(&amp;#039;so result is is: &amp;#039; + result)&lt;br /&gt;
            print(f&amp;#039;\x1B[3m{result}\x1B[0m&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
            line = &amp;#039;&amp;#039;&lt;br /&gt;
            prompt = &amp;#039;&amp;gt; &amp;#039;&lt;br /&gt;
        else:&lt;br /&gt;
            print(&amp;#039;line is: &amp;#039; + line)&lt;br /&gt;
            prompt = &amp;#039; &amp;#039;&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>