Comments (4)
If you have Windows 2000, XP or later get ansicon:
Actually I reckon A+ for ansicon -- Use
- ansicon.exe -I
Installs it as a filter on your CMD.exe sessions. Works a treat with HTTY.
:-)
from htty.
This is cool. I had not heard of ANSICON before. I'll try it out on Windows 7 and add it to readme instructions (possibly even an htty runtime message on Windows).
from htty.
found it on Stackoverflow ;-)
from htty.
I use Ansicon (love it!) on Windows XP 64-bit but the HTTY escape codes still don't work for me:
// prompt is not colored; attempt colored prompt with escape codes
C:> set PROMPT=$E[0;36m$P$E[36;1m$G$E[0m$S
←[0;36mC:\←[36;1m>←[0m
// SUCCESS: ugly prompt (as expected); launch ansicon to enable escape codes
←[0;36mC:\←[36;1m>←[0m ansicon
Microsoft Windows Version 5.2.3790 Copyright 1985-2003 Microsoft Corp.
C:>
// SUCCESS: prompt appears blue; now run htty
C:> htty arareqc
*** Welcome to ←[1m←[41m←[1;33m htty ←[0m, the ←[1mHTTP TTY←[0m. Heck To The Yeah!
// FAIL: escapes not working as expected, quit htty
←[1mhttp://arareqc/←[0m> quit
*** Happy Trails To You!
// SUCCESS, prompt is blue, exit Ansicon
C:>exit
// SUCCESS: ugly prompt (as expected)
←[0;36mC:\←[36;1m>←[0m
from htty.
Related Issues (20)
- `query-remove` without a request blows up HOT 1
- body-from-file command
- Commands with multiline input
- Slashes in `cd` command are URL-encoded HOT 7
- Cursor misbehaves if prompt line is larger than terminal width HOT 2
- Proxy support HOT 2
- `strip!': can't modify frozen String (RuntimeError) HOT 1
- Monospace font for code/pre on the site HOT 1
- Transition to Ruby v2.x HOT 1
- Allow returning to previous URI HOT 3
- Accessible examples HOT 3
- Allow patch to send body HOT 1
- Non-Basic Authorization header doesn’t persist after changing path HOT 3
- Ruby v2.1 breaks `body-response-open` and `body-request-open` due to change in temp file extension
- Report response times HOT 2
- Add a command for pretty-printing JSON
- Uninitialized constant HTTY::CLI::HTTPMethodCommand::OpenSSL on a fresh install HOT 4
- Set a default configuration HOT 1
- Add UI test coverage using Aruba Cucumber features
- Following relative URLs is not an idempotent operation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htty.