Here are a few API functions for console window operations, as follows:
Gets the console window information
getconsolescreenbufferinfo ();
Gets the console window title
getconsoletitle ();
Change the specified buffer size
setconsolescreenbuffersize ();
Set the
:["$", "$ X", "dir", "dirxml", "keys", "values", "profile", "profileEnd", "monitorEvents ", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners", "undebug", "monitor", "unmonitor", "table ", "$0", "$1", "$2", "$3", "$4", "$ _"]
Ps: As for how to view these things, I will talk about it later. I am afraid you will not understand it for the time being.You can also refer to console object #3. Command Line
methods and properties are: (chrome)
Copy Code code as follows:
["$$", "$x", "dir", "Dirxml", "Keys", "values", "Profile", "Profileend", "monitorevents", "unmonitorevents", "inspect", " Copy "," Clear "," geteventlisteners "," Undebug "," Monitor "," Unmonitor "," Table "," $ "," $ "," $ "," $ "," $ "," $_ "]
PS: As to how to view these things, will speak later, temporarily afraid you can not understand.You can also refer to the Co
1. API prototype SetconsoletextattributeBOOL WINAPI setconsoletextattribute ( _in_ HANDLE hconsoleoutput, // console output stream handle _in_ WORD wattributes // set properties );hconsoleoutput [Input parameters]The handle to the output stream of the console screen (handle to console-screens buffer).The
)Returns a set of elements to which the given XPath expression matches.$The element that is selected in the HTML panel.$The element that was last selected in the HTML panel.$n (Index)Access to the last 5 selected elements, the range of index: 0–4.Dir (object)Same as Console.dir (object).Dirxml (node)With Console.dirxml (node).Clear ()With Console.clear ().Inspect (object[, tabname]) ()View an object in the appropriate (or a specified) tab.Keys (object)Returns the key for all properties of an obj
Attach to a console
A process can be attached to a console using the attachconsole function, and only one console can be attached to a process. A console can have many processes attached to it. You can call the getconsoleprocesslist function to obtain the list attached to a consol
directory depends on the running environment of the project. For example. net framework2.0 requires entering cd C: \ Windows \ Microsoft. NET \ Framework \ v2.0.50727
Enter InstallUtil.exe D: \ G work \ WCF host WindowsService \ WcfServiceLibrary1 \ windowsservice \ bin \ Debug \ windowsservice.exe and press ENTERNote: D: \ G work \ WCF host WindowsService \ WcfServiceLibrary1 \ windowsservice \ bin \ Debug \ windowsservice.exe shows the location of the exe file generated by the project.
Uninst
Original URL: http://blog.csdn.net/liaoxinmeng/article/details/5004743First of all:1. Neither the terminal nor the console is the concept of personal computers, but the concept of a small, medium-sized mainframe computer shared by many people.A host, even a lot of terminals, the terminal for the host to provide a human-computer interface, everyone through the terminal using the host resources. The terminal has two kinds of character dumb terminal and
Console. debug (): the console prints the output only in the browser that supports the console.
Console. debug (): the console prints the output only in the browser that supports the console.
Var util = {};/*** tool clas
Chcp
Show activity Console
CodeNumber of pages, or change the active console code page of the console. If no parameter is available, the chcp displays the number of code pages in the active console.
SyntaxChcp [NNN]
Parameters
Specifies the code page. The following table lists all supported code pages and their
Shadowwind (Lily has died) 17:22:25 on
VC/MFC/
Basic ClassHow to call the console program: 1. Hide the console window; 2. Get the exit status of the console Program
I use system and _ spawnlp. The returned value is exit code, but the window cannot be hidden.Windows can be hidden with winexec (command, sw_hide), but no exit code is available.
Thank you for your a
Recently wrote a network module, with the command line Windows comes out debugging information, debugging information a bit more, monochrome slightly monotonous, so took a little time to do the following small modules.The code is very small, the use of the method is extremely simple , I will not repeat, the following examples. Less time, less talk.Have any bug, or have any need to improve, remember to contact me at any time ~ ~PaletteExample code:1#include 2 3#include"color_term.h"4 5 intMain ()
Source: http://iffiffj.iteye.com/blog/1404148Save the following code as a bat file and run it on the JBoss node.@echo Offset HOME=%~dp0set Jmx_console=%home%\deploy\jmx-Console.warset Jbossws_context=%home%\deploy\jbossws.sar\jbossws-Context.warset Web_console=%home%\deploy\management\console-mgr.sar\web-Console.warset Root_console=%home%\deploy\jboss-Web.deployer\root.warset Root_context=%home%\deploy\jboss-Web.deployer\context.xmlecho%home% for/d%%i
Chcp
Displays the number of active console code pages, or changes the active console code page for the console. If used without parameters, CHCP displays the number of active console code pages.
Grammar
chcp [nnn]
Parameters
Specifies the code page. The following table lists all supported code pages and their countr
( " Input of the Readstringfromdialog method: "+ str";} private static string Readstringfromdialog (String prompt ) { return joptionpane.showinputdialog (prompt);}}Both methods have a common disadvantage-they can only read strings, and if they need to read other types of data, they need to be converted manually.2 JDK 5.0 Read methodStarting with JDK 5.0, the Java.util.Scanner class is added to the base Class library, which, according to its API
", dog); Here are some tips on console.log1, rewrite Console.log change the style of output textAnd about console.log , has already been playing bad. It all comes down to the API provided by Chrome: The first parameter can contain some formatting instructions such as %c .For example, to hello world make a beautiful wedding dress and then pull out to see people:Console.log ('%chello world ', ' font-size:25px;color:red; ');If you don't feel good enough
view various loaded resource files, such as js, css, and images.
Audits: You can analyze the current web page and quickly analyze which resources are used and which resources are not used. Then, you can give suggestions.
Console: You can view error information, print debugging information, debug js Code, and view it as a Javascript API.
Code debugging
We can use the
Profiles panel
13, Console.timeline and Console.timelineend together to record a period of time axis
14, Console.trace stack tracking related debugging
The above method is only my personal understanding. If you want to see the specific API, you can look at the official, the specific address is: HTTPS://DEVELOPER.CHROME.COM/DEVTOOLS/DOCS/CONSOLE-API
Here are so
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.