Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2009 update #162

Merged
merged 56 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
9c5152d
Mark important docs as high pri for localization.
miniksa Sep 23, 2020
bb48386
recategorize some of the pages so they're easier to group and underst…
miniksa Sep 23, 2020
5998e67
Fix title and main heading for the warning from open publishing about…
miniksa Sep 23, 2020
7a92954
Do some editing.
miniksa Sep 23, 2020
bed232c
Revert "Mark important docs as high pri for localization."
miniksa Sep 23, 2020
c9fd60e
Create not recommended template, create documents explaining it, try …
miniksa Sep 25, 2020
28a411e
shuffle around, add metadata blocks and first header.
miniksa Sep 25, 2020
aadc9da
tiny update to ownership
miniksa Sep 25, 2020
98f1f14
did I use the wrong slashes for the path.
miniksa Sep 25, 2020
5336993
Bannerize a ton of APIs that we want to see be disfavored versus virt…
miniksa Sep 25, 2020
245b7f0
drop md from links as they didn't resolve on docs build.
miniksa Sep 25, 2020
f22055d
Fix capitalization issue in TOC.
miniksa Sep 25, 2020
8f23152
bit more cleanup
miniksa Sep 30, 2020
6cef3bf
condense ugly table
miniksa Sep 30, 2020
670c837
Wide scope of updating, templatizing, cleaning up tables, etc.
miniksa Oct 5, 2020
6ca0e83
disrecommend writing to specific coordinate.
miniksa Oct 5, 2020
ef936f6
somehow missed these two.
miniksa Oct 5, 2020
0c1973b
more vt tips.
miniksa Oct 6, 2020
ef45b97
Draft classic vs vt.
miniksa Oct 6, 2020
857d2f4
ecosystem roadmap
miniksa Oct 6, 2020
62b8d6b
Products, ecosystem
miniksa Oct 6, 2020
8de0d67
timeline/roadmap, move definitions out.
miniksa Oct 6, 2020
e4c3e30
some cleanup and add links
miniksa Oct 6, 2020
dd186a1
Add to TOC here?
miniksa Oct 6, 2020
d919522
fix links
miniksa Oct 6, 2020
b0399d2
Try headerless table to see if it shows correctly on the website.
miniksa Oct 6, 2020
5bf81a4
dustin comments + a bunch of psuedo/pseudo fixes.
miniksa Oct 6, 2020
a38e503
try markdig grid table
miniksa Oct 7, 2020
fe8a8fb
Revert "try markdig grid table"
miniksa Oct 7, 2020
e90972f
Revert "Try headerless table to see if it shows correctly on the webs…
miniksa Oct 7, 2020
8583f05
A bunch more cleanup and tips.
miniksa Oct 7, 2020
fce0187
fix all tips I didn't finish earlier today.
miniksa Oct 7, 2020
f0ab174
typo
mattwojo Oct 7, 2020
e5c6e3a
two dustin nits
miniksa Oct 7, 2020
7cdbdcc
trickery
miniksa Oct 7, 2020
80deb7c
fix broken links
miniksa Oct 7, 2020
5c92ba2
bulk trickery
miniksa Oct 7, 2020
fdf3c75
try adjusting link paths to parent.
miniksa Oct 7, 2020
e144ace
try to fix last batch of warnings.
miniksa Oct 7, 2020
357a1b2
Minor reorg to improve framing intent
mattwojo Oct 8, 2020
5f2af55
Merge pull request #164 from MicrosoftDocs/2009-update-mw
mattwojo Oct 9, 2020
5ebc90e
Editorial review suggestions
mattwojo Oct 12, 2020
e92c71e
fix def anchor links
mattwojo Oct 12, 2020
bf7f39c
fix def links add file type
mattwojo Oct 12, 2020
aab79d3
typo
mattwojo Oct 13, 2020
667b013
minor grammatical updates
mattwojo Oct 13, 2020
9b0c645
Fix header
mattwojo Oct 13, 2020
109de60
typo
mattwojo Oct 13, 2020
223c943
Update format of bullet list
mattwojo Oct 13, 2020
ce92884
Update terminal explanation
mattwojo Oct 15, 2020
32f26d8
Merge pull request #166 from MicrosoftDocs/2009-update-mw
mattwojo Oct 15, 2020
a9d7f8a
Proposed rephrasing of UTF8/16 support.
miniksa Oct 28, 2020
f5a5cad
Merge branch '2009-update' of https://github.com/MicrosoftDocs/Consol…
miniksa Oct 28, 2020
52b8e3f
fix warning
miniksa Oct 28, 2020
94fd0df
Revisions for Dustin commentary.
miniksa Oct 28, 2020
12225b3
Link console api
mattwojo Oct 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openpublishing.publish.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
],
"notification_subscribers": [
"richturn@microsoft.com",
"cinnamon@microsoft.com",
"duhowett@microsoft.com",
"miniksa@microsoft.com"
],
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Welcome to the Windows Console documentation repo. The MSDN Console Docs are generated from the markdown stored in this repo.
The published docs can be found at [https://docs.microsoft.com/windows/console/](https://docs.microsoft.com/windows/console/)

For code issues related to the Windows Console, Windows Terminal, and related command-line and terminal tooling products acquired with Windows, from the Windows Store, or other sources like GitHub, please check out the [Microsoft/Terminal](https://github.com/microsoft/terminal) repository.
For code issues related to the Windows Console, Windows Terminal, and related command-line and terminal tooling products acquired with Windows, from the Windows Store, or other sources like GitHub, please check out the [microsoft/terminal](https://github.com/microsoft/terminal) repository.

# Metadata
Each content page in this repo requires some metadata expressed as [YAML](https://en.wikipedia.org/wiki/YAML), stored at the top of each doc between '---' markers. For example:
Expand Down Expand Up @@ -35,7 +35,7 @@ While some metadata is stored per file (e.g. above), common metadata required by
"fileMetadata": {
"ms.prod": { "/console/**.yml": "windows"},
"ms.technology": { "/console/**.yml": "desktop"},
"manager": {"/console/**.yml": "richturn"}
"manager": {"/console/**.yml": "miniksa"}
}
}
}
Expand Down
7 changes: 6 additions & 1 deletion docs/TOC.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# [Home](index.md)

## [Ecosystem Roadmap](ecosystem-roadmap.md)
## [Definitions](definitions.md)
## [Console APIs vs. Virtual Terminal](classic-vs-vt.md)

# [About Character Mode Applications](about-character-mode-applications.md)
## [Input And Output Methods](input-and-output-methods.md)
## [Console Code Pages](console-code-pages.md)
Expand Down Expand Up @@ -56,7 +61,7 @@
### [GenerateConsoleCtrlEvent](generateconsolectrlevent.md)
### [GetConsoleAlias](getconsolealias.md)
### [GetConsoleAliases](getconsolealiases.md)
### [GetConsoleAliaseslength](getconsolealiaseslength.md)
### [GetConsoleAliasesLength](getconsolealiaseslength.md)
### [GetConsoleAliasExes](getconsolealiasexes.md)
### [GetConsoleAliasExesLength](getconsolealiasexeslength.md)
### [GetConsoleCP](getconsolecp.md)
Expand Down
16 changes: 4 additions & 12 deletions docs/about-character-mode-applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: About Consoles
description: Consoles provide high-level support for simple character mode applications that interact with the user by using functions that read from standard input and write to standard output or standard error.
author: miniksa
ms.author: miniksa
ms.topic: article
ms.topic: conceptual
keywords: console, character mode applications, command line applications, terminal applications, console api
MS-HAID:
- '\_win32\_about\_character\_mode\_applications'
Expand All @@ -19,13 +19,13 @@ ms.assetid: 39204f0e-b0b8-4f92-af8e-e146ac06c454

Character mode (or "command-line") applications:

1. [Optionally] Read data from standard input (stdin)
1. \[Optionally\] Read data from standard input (stdin)
2. Do "work"
3. [Optionally] Write data to standard output (stdout) or standard error (stderr)
3. \[Optionally\] Write data to standard output (stdout) or standard error (stderr)

Character mode applications communicate with the end-user through a "console" (or "terminal") application. A console converts user input from keyboard, mouse, touch-screen, pen, etc., and sends it to a character mode application's stdin. A console may also display a character mode application's text output on the user's screen.

In Windows, the console is built-in and provides a rich API through which character mode applications can interact with the user.
In Windows, the console is built-in and provides a rich API through which character mode applications can interact with the user. However, in the recent era, the console team is encouraging all character mode applications to be developed with [virtual terminal sequences](console-virtual-terminal-sequences.md) over the classic API calls for maximum compatibility between Windows and other operating systems. More details on this transition and the trade offs involved can be found in our discussion of [classic APIs versus virtual terminal sequences](classic-vs-vt.md).

- [Consoles](consoles.md)
- [Input and Output Methods](input-and-output-methods.md)
Expand All @@ -34,11 +34,3 @@ In Windows, the console is built-in and provides a rich API through which charac
- [Console Aliases](console-aliases.md)
- [Console Buffer Security and Access Rights](console-buffer-security-and-access-rights.md)
- [Console Application Issues](console-application-issues.md)








82 changes: 19 additions & 63 deletions docs/addconsolealias.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ api_type:

# AddConsoleAlias function

[!INCLUDE [not-recommended-banner](./includes/not-recommended-banner.md)]

Defines a console alias for the specified executable.

Syntax
------
## Syntax

```C
BOOL WINAPI AddConsoleAlias(
Expand All @@ -50,8 +50,7 @@ BOOL WINAPI AddConsoleAlias(
);
```

Parameters
----------
## Parameters

*Source* \[in\]
The console alias to be mapped to the text specified by *Target*.
Expand All @@ -62,69 +61,34 @@ The text to be substituted for *Source*. If this parameter is **NULL**, then the
*ExeName* \[in\]
The name of the executable file for which the console alias is to be defined.

Return value
------------
## Return value

If the function succeeds, the return value is **TRUE**.

If the function fails, the return value is **FALSE**. To get extended error information, call [**GetLastError**](https://msdn.microsoft.com/library/windows/desktop/ms679360).

Remarks
-------
## Remarks

To compile an application that uses this function, define **\_WIN32\_WINNT** as 0x0501 or later. For more information, see [Using the Windows Headers](https://msdn.microsoft.com/library/windows/desktop/aa383745).

Examples
--------
[!INCLUDE [no-vt-equiv-shell-banner](./includes/no-vt-equiv-shell-banner.md)]

## Examples

For an example, see [Console Aliases](console-aliases.md).

Requirements
------------

<table>
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<tbody>
<tr class="odd">
<td><p>Minimum supported client</p></td>
<td><p>Windows 2000 Professional [desktop apps only]</p></td>
</tr>
<tr class="even">
<td><p>Minimum supported server</p></td>
<td><p>Windows 2000 Server [desktop apps only]</p></td>
</tr>
<tr class="odd">
<td><p>Header</p></td>
<td>ConsoleApi3.h (via Wincon.h, include Windows.h)</td>
</tr>
<tr class="even">
<td><p>Library</p></td>
<td>Kernel32.lib</td>
</tr>
<tr class="odd">
<td><p>DLL</p></td>
<td>Kernel32.dll</td>
</tr>
<tr class="even">
<td><p>Unicode and ANSI names</p></td>
<td><p><strong>AddConsoleAliasW</strong> (Unicode) and <strong>AddConsoleAliasA</strong> (ANSI)</p></td>
</tr>
<tr class="odd">
</tr>
<tr class="even">
</tr>
<tr class="odd">
</tr>
<tr class="even">
</tr>
</tbody>
</table>

## <span id="see_also"></span>See also
## Requirements

| &nbsp; | &nbsp; |
|-|-|
| Minimum supported client | Windows 2000 Professional \[desktop apps only\] |
| Minimum supported server | Windows 2000 Server \[desktop apps only\] |
| Header | ConsoleApi3.h (via WinCon.h, include Windows.h) |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |
| Unicode and ANSI names | **AddConsoleAliasW** (Unicode) and **AddConsoleAliasA** (ANSI) |

## See also

[Console Aliases](console-aliases.md)

Expand All @@ -135,11 +99,3 @@ Requirements
[**GetConsoleAliases**](getconsolealiases.md)

[**GetConsoleAliasExes**](getconsolealiasexes.md)








70 changes: 14 additions & 56 deletions docs/allocconsole.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,25 @@ api_type:

# AllocConsole function


Allocates a new console for the calling process.

Syntax
------
## Syntax

```C
BOOL WINAPI AllocConsole(void);
```

Parameters
----------
## Parameters

This function has no parameters.

Return value
------------
## Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call [**GetLastError**](https://msdn.microsoft.com/library/windows/desktop/ms679360).

Remarks
-------
## Remarks

A process can be associated with only one console, so the **AllocConsole** function fails if the calling process already has a console. A process can use the [**FreeConsole**](freeconsole.md) function to detach itself from its current console, then it can call **AllocConsole** to create a new console or [**AttachConsole**](attachconsole.md) to attach to another console.

Expand All @@ -66,46 +61,17 @@ If the calling process creates a child process, the child inherits the new conso

This function is primarily used by a graphical user interface (GUI) application to create a console window. GUI applications are initialized without a console. Console applications are initialized with a console, unless they are created as detached processes (by calling the [**CreateProcess**](https://msdn.microsoft.com/library/windows/desktop/ms682425) function with the **DETACHED\_PROCESS** flag).

Requirements
------------

<table>
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<tbody>
<tr class="odd">
<td><p>Minimum supported client</p></td>
<td><p>Windows 2000 Professional [desktop apps only]</p></td>
</tr>
<tr class="even">
<td><p>Minimum supported server</p></td>
<td><p>Windows 2000 Server [desktop apps only]</p></td>
</tr>
<tr class="odd">
<td><p>Header</p></td>
<td>ConsoleApi3.h (via Wincon.h, include Windows.h)</td>
</tr>
<tr class="even">
<td><p>Library</p></td>
<td>Kernel32.lib</td>
</tr>
<tr class="odd">
<td><p>DLL</p></td>
<td>Kernel32.dll</td>
</tr>
<tr class="even">
</tr>
<tr class="odd">
</tr>
<tr class="even">
</tr>
</tbody>
</table>

## <span id="see_also"></span>See also
## Requirements

| &nbsp; | &nbsp; |
|-|-|
| Minimum supported client | Windows 2000 Professional \[desktop apps only\] |
| Minimum supported server | Windows 2000 Server \[desktop apps only\] |
| Header | ConsoleApi.h (via WinCon.h, include Windows.h) |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |

## See also

[Console Functions](console-functions.md)

Expand All @@ -118,11 +84,3 @@ Requirements
[**FreeConsole**](freeconsole.md)

[**GetStdHandle**](getstdhandle.md)








Loading